summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-02 12:54:02 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-02 12:54:02 +0000
commita746483fd8eda59a0f42719186912ceabba2f4ac (patch)
tree41bcf9c9781d572ba675c2a233e969956ed5accf /source3/include/includes.h
parente030b91bf8416654007daa1f493b36fb59cf5b58 (diff)
downloadsamba-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/include/includes.h')
-rw-r--r--source3/include/includes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 9b19904962..29580a9192 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1160,6 +1160,15 @@ int snprintf(char *,size_t ,const char *, ...) PRINTF_ATTRIBUTE(3,4);
int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
#endif
+void sys_adminlog(int priority, const char *format_str, ...) PRINTF_ATTRIBUTE(2,3);
+
+int pstr_sprintf(pstring s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
+int fstr_sprintf(fstring s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
+
+int d_vfprintf(FILE *f, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
+
+int smb_xvasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
+
/* we used to use these fns, but now we have good replacements
for snprintf and vsnprintf */
#define slprintf snprintf