From 1bf3c958b13d70e495299238f0e178f8f99ced67 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 31 Mar 2011 13:42:27 +0100 Subject: [PATCH] taplib's is_str() should take const char * --- t/taplib.c | 2 +- t/taplib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/taplib.c b/t/taplib.c index 256523f..5c23a6e 100644 --- a/t/taplib.c +++ b/t/taplib.c @@ -41,7 +41,7 @@ void is_int(int got, int expect, char *name) } } -void is_str(char *got, char *expect, char *name) +void is_str(const char *got, const char *expect, char *name) { if(strcmp(got, expect) == 0) ok(1, name); diff --git a/t/taplib.h b/t/taplib.h index b675329..45ce898 100644 --- a/t/taplib.h +++ b/t/taplib.h @@ -1,5 +1,5 @@ void plan_tests(int n); void ok(int cmp, char *name); void is_int(int got, int expect, char *name); -void is_str(char *got, char *expect, char *name); +void is_str(const char *got, const char *expect, char *name); int exit_status(void);