X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.h;h=1dad63650e40a2c26f62f99d90964e6c9bedcd93;hp=f854d3e39035071f736605fb96d0e44d27d0da3d;hb=ad35219dc2e2855eb79653b824711ea3bff10dfc;hpb=650c775ff00cccd03fc84e7789a03c51d9839004;ds=sidebyside diff --git a/ccan/tap/tap.h b/ccan/tap/tap.h index f854d3e3..1dad6365 100644 --- a/ccan/tap/tap.h +++ b/ccan/tap/tap.h @@ -124,8 +124,8 @@ void plan_tests(unsigned int tests); #endif #endif -unsigned int _gen_result(int, const char *, char *, unsigned int, char *, ...) - PRINTF_ATTRIBUTE(5, 6); +unsigned int _gen_result(int, const char *, const char *, unsigned int, + const char *, ...) PRINTF_ATTRIBUTE(5, 6); /** * diag - print a diagnostic message (use instead of printf/fprintf) @@ -137,7 +137,7 @@ unsigned int _gen_result(int, const char *, char *, unsigned int, char *, ...) * Example: * diag("Now running complex tests"); */ -void diag(char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); +void diag(const char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); /** * skip - print a diagnostic message (use instead of printf/fprintf) @@ -160,7 +160,7 @@ void diag(char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); * skip(1, "Don't have SOME_FEATURE"); * #endif */ -void skip(unsigned int n, char *fmt, ...) PRINTF_ATTRIBUTE(2, 3); +void skip(unsigned int n, const char *fmt, ...) PRINTF_ATTRIBUTE(2, 3); /** * todo_start - mark tests that you expect to fail. @@ -185,7 +185,7 @@ void skip(unsigned int n, char *fmt, ...) PRINTF_ATTRIBUTE(2, 3); * ok(dwim(), "Did what the user wanted"); * todo_end(); */ -void todo_start(char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); +void todo_start(const char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); /** * todo_end - end of tests you expect to fail. @@ -241,6 +241,6 @@ void plan_no_plan(void); * } * plan_tests(13); */ -void plan_skip_all(char *reason); +void plan_skip_all(const char *reason); #endif /* C99 or gcc */