diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-26 02:26:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-26 02:26:56 +0200 |
commit | 60303f47011c1c1e8f0e6d97612228878cded9e7 (patch) | |
tree | 2a4566b0123ccb244b796baf6ed27de696b373ac /src | |
parent | fix -Wall warnings (diff) | |
download | argparser-60303f47011c1c1e8f0e6d97612228878cded9e7.tar.gz argparser-60303f47011c1c1e8f0e6d97612228878cded9e7.tar.bz2 argparser-60303f47011c1c1e8f0e6d97612228878cded9e7.tar.xz |
fix -Wextra warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/argparser.c | 6 |
1 files 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; |