[PATCH 4/4] [BUG] format '%d' expects type 'int', but argument 5 has type 'long int'

From: Krzysztof Piotr Oledzki <ole#ans.pl>
Date: Tue, 15 Dec 2009 22:48:38 +0100


From 750cb365d4ea2fa886cdcc71ca2fcde22a08f9b6 Mon Sep 17 00:00:00 2001 From: Krzysztof Piotr Oledzki <ole#ans.pl> Date: Tue, 15 Dec 2009 22:34:51 +0100
Subject: [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'
---

 src/cfgparse.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cfgparse.c b/src/cfgparse.c index 653defe..6b73dea 100644
--- a/src/cfgparse.c

+++ b/src/cfgparse.c
@@ -4083,7 +4083,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;
-- 
1.6.4.2
Received on 2009/12/15 22:48

This archive was generated by hypermail 2.2.0 : 2009/12/15 23:00 CET