aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 13:42:27 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 13:42:27 +0100
commit1bf3c958b13d70e495299238f0e178f8f99ced67 (patch)
tree442ef042be97c7880ddabd01a6dfa895102a997b /t
parentbe153dc5ee8c9f016c1a1014329dcd44450f78a1 (diff)
downloadtermo-1bf3c958b13d70e495299238f0e178f8f99ced67.tar.gz
termo-1bf3c958b13d70e495299238f0e178f8f99ced67.tar.xz
termo-1bf3c958b13d70e495299238f0e178f8f99ced67.zip
taplib's is_str() should take const char *
Diffstat (limited to 't')
-rw-r--r--t/taplib.c2
-rw-r--r--t/taplib.h2
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);