From cb93d28e7c06fc8a95f9fda69fc2a9705120b10a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 23 Jun 2006 21:05:45 +0000 Subject: r16489: Because the torture/ui.h file isn't automaticly generated, the prototypes in it need to use the PRINTF_ATTRIBUTE() macro, rather than _PRINTF_ATTRIBUTE() (which becomes PRINTF_ATTRIBUTE() only in proto files, but not C files). This found a number of missing descriptions in the LOCAL-SOCKET test. Andrew Bartlett (This used to be commit 1009d55c8caa173e9998b38235c06b4ae4b30d80) --- source4/torture/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/torture/ui.c') diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 81d787b878..8e1a2a1c93 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -23,7 +23,7 @@ #include "torture/ui.h" #include "dlinklist.h" -void torture_comment(struct torture_context *context, const char *comment, ...) _PRINTF_ATTRIBUTE(2,3) +void torture_comment(struct torture_context *context, const char *comment, ...) { va_list ap; char *tmp; @@ -39,7 +39,7 @@ void torture_comment(struct torture_context *context, const char *comment, ...) talloc_free(tmp); } -void torture_fail(struct torture_context *context, const char *fmt, ...) _PRINTF_ATTRIBUTE(2,3) +void torture_fail(struct torture_context *context, const char *fmt, ...) { va_list ap; @@ -49,7 +49,7 @@ void torture_fail(struct torture_context *context, const char *fmt, ...) _PRINTF context->last_result = TORTURE_FAIL; } -void torture_skip(struct torture_context *context, const char *fmt, ...) _PRINTF_ATTRIBUTE(2,3) +void torture_skip(struct torture_context *context, const char *fmt, ...) { va_list ap; context->skipped++; -- cgit