summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-22 10:32:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:59 -0500
commit6dcdf1df5637406cb47327104b3f310682487355 (patch)
treedf8a609d37ec6d08823bad88d97d10001590b0a7 /source4/param
parentdd7862cb6aaef40b848eb96fb4020c492a313ec8 (diff)
downloadsamba-6dcdf1df5637406cb47327104b3f310682487355.tar.gz
samba-6dcdf1df5637406cb47327104b3f310682487355.tar.bz2
samba-6dcdf1df5637406cb47327104b3f310682487355.zip
r2504: Add printf attribute, for format argument checking.
Andrew Bartlett (This used to be commit 543401990aa9eb650cb93fa6cb60d2a0adf7b274)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 42798a3e7f..2a361b5432 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2407,6 +2407,8 @@ static BOOL do_parameter(const char *pszParmName, const char *pszParmValue)
/*
variable argument do parameter
*/
+static BOOL do_parameter_var(const char *pszParmName, const char *fmt, ...) PRINTF_ATTRIBUTE(2, 3);
+
static BOOL do_parameter_var(const char *pszParmName, const char *fmt, ...)
{
char *s;