From 60303f47011c1c1e8f0e6d97612228878cded9e7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 02:26:56 +0200 Subject: fix -Wextra warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/argparser.c b/src/argparser.c index 7e92605..908c16a 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -656,7 +656,7 @@ extern char* args_parent_name(long levels) } n = fread(data, 1, 2048, is); j = 0; - for (i = 0; i < n; i++) + for (i = 0; i < (long)n; i++) { char c = *(data + i); if (c == '\n') @@ -701,10 +701,10 @@ extern char* args_parent_name(long levels) for (;;) { n += fread(cmd, 1, 128, is); - for (; i < n; i++) + for (; i < (long)n; i++) if (*(cmd + i) == 0) break; - if (i == n) + if (i == (long)n) cmd = (char*)realloc(cmd, (cmdsize + 128) * sizeof(char)); else break; -- cgit v1.2.3-70-g09d2