diff options
author | Karel Zak | 2016-04-04 11:01:15 +0200 |
---|---|---|
committer | Karel Zak | 2016-04-04 11:01:15 +0200 |
commit | d551d668917d4a247571a295729d3c51b789dd91 (patch) | |
tree | 5307ec0008658185a860d0d9326a9ec8d153a35b /lib/strutils.c | |
parent | getopt: make sure setprogname provided by non-Linux system (diff) | |
download | kernel-qcow2-util-linux-d551d668917d4a247571a295729d3c51b789dd91.tar.gz kernel-qcow2-util-linux-d551d668917d4a247571a295729d3c51b789dd91.tar.xz kernel-qcow2-util-linux-d551d668917d4a247571a295729d3c51b789dd91.zip |
lib/strutils: use int for fgetc()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/strutils.c')
-rw-r--r-- | lib/strutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strutils.c b/lib/strutils.c index 9d30b83d1..5a6be2dae 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -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) |