make this a little more compatible with c99

This commit is contained in:
Enno Rehling 2013-05-04 17:27:11 -07:00
parent b5910573d0
commit 30c0fed288
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
#include "CuTest.h" #include "CuTest.h"
CuSuite* CuGetSuite(); CuSuite* CuGetSuite(void);
CuSuite* CuStringGetSuite(); CuSuite* CuStringGetSuite(void);
int RunAllTests(void) int RunAllTests(void)
{ {

View File

@ -213,7 +213,7 @@ void TestCuAssertPtrEquals_Failure(CuTest* tc)
CuTestInit(&tc2, "MyTest", TestPasses); CuTestInit(&tc2, "MyTest", TestPasses);
/* test failing case */ /* test failing case */
sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", nullPtr, &x); sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", (void*)nullPtr, (void*)&x);
CuAssertPtrEquals(&tc2, NULL, &x); CuAssertPtrEquals(&tc2, NULL, &x);
CuAssertTrue(tc, tc2.failed); CuAssertTrue(tc, tc2.failed);
CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message); CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message);