]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/strutils: use int for fgetc()
authorKarel Zak <kzak@redhat.com>
Mon, 4 Apr 2016 09:01:15 +0000 (11:01 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Apr 2016 09:01:15 +0000 (11:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c

index 9d30b83d10d1f3c03a088822c0f9be82ccf6208c..5a6be2daed3db3a0369db87b884cb42aa087178b 100644 (file)
@@ -883,7 +883,7 @@ const char *split(const char **state, size_t *l, const char *separator, int quot
 /* Rewind file pointer forward to new line.  */
 int skip_fline(FILE *fp)
 {
-       char ch;
+       int ch;
 
        do {
                if ((ch = fgetc(fp)) == EOF)