From a746483fd8eda59a0f42719186912ceabba2f4ac Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 2 Jan 2003 12:54:02 +0000 Subject: Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in compiler-based argument checking. (This used to be commit 16fe928e68623a878b125910ff83df500a29d0ce) --- source3/lib/util_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index a76278e532..7ffd71bde9 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1116,7 +1116,7 @@ char *binary_string(char *buf, int len) Just a typesafety wrapper for snprintf into a pstring. ********************************************************************/ -int pstr_sprintf(pstring s, const char *fmt, ...) + int pstr_sprintf(pstring s, const char *fmt, ...) { va_list ap; int ret; @@ -1131,7 +1131,7 @@ int pstr_sprintf(pstring s, const char *fmt, ...) Just a typesafety wrapper for snprintf into a fstring. ********************************************************************/ -int fstr_sprintf(fstring s, const char *fmt, ...) + int fstr_sprintf(fstring s, const char *fmt, ...) { va_list ap; int ret; -- cgit