From: Krzysztof Piotr Oledzki Date: Tue, 15 Dec 2009 21:34:51 +0000 (+0100) Subject: [BUG] format '%d' expects type 'int', but argument 5 has type 'long int' X-Git-Tag: v1.4-dev5~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=500b8f0349fb52678f5143c49f5a8be5c033a988;p=thirdparty%2Fhaproxy.git [BUG] format '%d' expects type 'int', but argument 5 has type 'long int' src/cfgparse.c: In function 'readcfgfile': src/cfgparse.c:4087: warning: format '%d' expects type 'int', but argument 5 has type 'long int' --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 1a2e9b07db..4e851d0f1b 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -4084,7 +4084,7 @@ int readcfgfile(const char *file) line++; *line = '\0'; - Alert("parsing [%s:%d]: line too long, truncating at word %d, position %d : <%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;