SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
40
devel/cunit/patches/patch-CUnit_Sources_Curses_Curses_c
Normal file
40
devel/cunit/patches/patch-CUnit_Sources_Curses_Curses_c
Normal file
|
@ -0,0 +1,40 @@
|
|||
Remove type-conversion compiler warnings, no functional change.
|
||||
|
||||
--- 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);
|
Loading…
Add table
Add a link
Reference in a new issue