]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] format '%d' expects type 'int', but argument 5 has type 'long int'
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Tue, 15 Dec 2009 21:34:51 +0000 (22:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Dec 2009 23:29:41 +0000 (00:29 +0100)
src/cfgparse.c: In function 'readcfgfile':
src/cfgparse.c:4087: warning: format '%d' expects type 'int', but argument 5 has type 'long int'

src/cfgparse.c

index 1a2e9b07db69abe4ef85d1ed4a9c398e0051a598..4e851d0f1bfcff7e3456ca6daad2c5dd39e08e8f 100644 (file)
@@ -4084,7 +4084,7 @@ int readcfgfile(const char *file)
                                line++;
                        *line = '\0';
 
-                       Alert("parsing [%s:%d]: line too long, truncating at word %d, position %: <%s>.\n",
+                       Alert("parsing [%s:%d]: line too long, truncating at word %d, position %ld: <%s>.\n",
                              file, linenum, arg + 1, args[arg] - thisline + 1, args[arg]);
                        err_code |= ERR_ALERT | ERR_FATAL;
                        args[arg] = line;