diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-02 12:54:02 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-02 12:54:02 +0000 |
commit | a746483fd8eda59a0f42719186912ceabba2f4ac (patch) | |
tree | 41bcf9c9781d572ba675c2a233e969956ed5accf /source3/lib/util_str.c | |
parent | e030b91bf8416654007daa1f493b36fb59cf5b58 (diff) | |
download | samba-a746483fd8eda59a0f42719186912ceabba2f4ac.tar.gz samba-a746483fd8eda59a0f42719186912ceabba2f4ac.tar.bz2 samba-a746483fd8eda59a0f42719186912ceabba2f4ac.zip |
Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in
compiler-based argument checking.
(This used to be commit 16fe928e68623a878b125910ff83df500a29d0ce)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |