X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Futils%2Ftap%2Ftap.c;h=8e9f9a645fc38c2ec09a972b1b8d45fbcccb891c;hb=994cd345db7a82957ce647c2dac28cae11382dcc;hp=a5c3a8109c8e279542d73f083cb5802a214c5bab;hpb=5eddd0b3f8956757bbc7435121bcc61362f4725f;p=babeltrace.git diff --git a/tests/utils/tap/tap.c b/tests/utils/tap/tap.c index a5c3a810..8e9f9a64 100644 --- a/tests/utils/tap/tap.c +++ b/tests/utils/tap/tap.c @@ -42,7 +42,7 @@ static unsigned int test_count = 0; /* Number of tests that have been run */ static unsigned int e_tests = 0; /* Expected number of tests to run */ static unsigned int failures = 0; /* Number of tests that failed */ static char *todo_msg = NULL; -static char *todo_msg_fixed = "libtap malloc issue"; +static const char *todo_msg_fixed = "libtap malloc issue"; static int todo = 0; static int test_died = 0; @@ -109,7 +109,7 @@ _gen_result(int ok, const char *func, const char *file, unsigned int line, if(local_test_name) { name_is_digits = 1; for(c = local_test_name; *c != '\0'; c++) { - if(!isdigit(*c) && !isspace(*c)) { + if(!isdigit((unsigned char) *c) && !isspace((unsigned char) *c)) { name_is_digits = 0; break; }