openbsd-ports/devel/cunit/patches/patch-CUnit_Sources_Curses_Curses_c
jasper 0b8ca0fab6 - update to 2.1.2
* fix a few type-conversion/shadowing warnings
- drop patches since it can be dealt with in FAKE_FLAGS

from Markus Bergkvist (MAINTAINER)
2011-08-19 08:04:02 +00:00

42 lines
1.7 KiB
Plaintext

Remove type-conversion compiler warnings, no functional change.
$OpenBSD: patch-CUnit_Sources_Curses_Curses_c,v 1.1 2011/08/19 08:04:02 jasper Exp $
--- CUnit/Sources/Curses/Curses.c.orig Sat May 20 15:19:14 2006
+++ CUnit/Sources/Curses/Curses.c Wed Aug 17 20:42:34 2011
@@ -736,7 +736,7 @@ static STATUS curses_suite_level_run(CU_pSuite pSuite)
}
else {
list_tests(pSuite);
- snprintf(szTemp, STRING_LENGTH, "%s",
+ snprintf(szTemp, STRING_LENGTH,
_("Enter number of test to select (1-%u) : "),
pRegistry->uiNumberOfSuites);
read_input_string(szTemp, szTestNumber, STRING_LENGTH);
@@ -769,7 +769,7 @@ static STATUS curses_suite_level_run(CU_pSuite pSuite)
else {
while (1) {
list_tests(pSuite);
- snprintf(szTemp, STRING_LENGTH, "%s",
+ snprintf(szTemp, STRING_LENGTH,
_("Enter number of test to select (1-%u) : "),
pRegistry->uiNumberOfSuites);
read_input_string(szTemp, szTestNumber, STRING_LENGTH);
@@ -976,7 +976,7 @@ static void list_suites(CU_pTestRegistry pRegistry)
CU_pSuite pCurSuite = NULL;
int i;
char szTemp[STRING_LENGTH];
- static size_t width[6];
+ static int width[6];
if (NULL == pRegistry) {
pRegistry = CU_get_registry();
@@ -1042,7 +1042,7 @@ static void list_tests(CU_pSuite pSuite)
CU_pTest pCurTest = NULL;
unsigned int i;
char szTemp[STRING_LENGTH];
- static size_t width[3];
+ static int width[3];
assert(NULL != pSuite);
assert(NULL != pSuite->pName);