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/include/xfile.h | |
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/include/xfile.h')
-rw-r--r-- | source3/include/xfile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/xfile.h b/source3/include/xfile.h index a573b59a4a..89fa9d1e11 100644 --- a/source3/include/xfile.h +++ b/source3/include/xfile.h @@ -44,4 +44,6 @@ extern XFILE *x_stdin, *x_stdout, *x_stderr; #define x_getc(f) x_fgetc(f) +int x_vfprintf(XFILE *f, const char *format, va_list ap) PRINTF_ATTRIBUTE(2, 0); +int x_fprintf(XFILE *f, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); #endif /* _XFILE_H_ */ |