From 205f72b3e0445dd8db85afa53540244b4eb32672 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 8 Oct 2010 17:28:10 +0200 Subject: [PATCH] fixed compiler warnings in test helpers. --- test/unit.c | 2 +- test/unit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit.c b/test/unit.c index 0982421..562c529 100644 --- a/test/unit.c +++ b/test/unit.c @@ -14,7 +14,7 @@ static inline char ranchr() { 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) __uexit(file, line, func, "a or b is null\n", NULL); diff --git a/test/unit.h b/test/unit.h index d751938..82f0b36 100644 --- a/test/unit.h +++ b/test/unit.h @@ -15,7 +15,7 @@ } while(0) /* 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)