Archived
1
0
Fork 0

fixed compiler warnings in test helpers.

This commit is contained in:
Henrik Hautakoski 2010-10-08 17:28:10 +02:00
parent 03c830be75
commit 205f72b3e0
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ static inline char ranchr() {
return ch; return ch;
} }
void __assert_str(char *file, int line, char *func, char *a, char *b) { void __assert_str(const char *file, int line, const char *func, const char *a, const char *b) {
if (a == NULL || b == NULL) if (a == NULL || b == NULL)
__uexit(file, line, func, "a or b is null\n", NULL); __uexit(file, line, func, "a or b is null\n", NULL);

View file

@ -15,7 +15,7 @@
} while(0) } while(0)
/* internal function. assert_* macros below expands to this */ /* internal function. assert_* macros below expands to this */
void __assert_str(char *file, int line, char *func, char *a, char *b); void __assert_str(const char *file, int line, const char *func, const char *a, const char *b);
#define assert_string(a, b) __assert_str(__FILE__, __LINE__, __FUNCTION__, a, b) #define assert_string(a, b) __assert_str(__FILE__, __LINE__, __FUNCTION__, a, b)