diff options
author | Karel Zak <kzak@redhat.com> | 2016-04-04 11:01:15 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2016-04-04 11:01:15 +0200 |
commit | d551d668917d4a247571a295729d3c51b789dd91 (patch) | |
tree | 5307ec0008658185a860d0d9326a9ec8d153a35b | |
parent | 30fbf2f679fb9072ea76034469ea400e33dffb62 (diff) | |
download | util-linux-d551d668917d4a247571a295729d3c51b789dd91.tar.gz |
lib/strutils: use int for fgetc()
Signed-off-by: Karel Zak <kzak@redhat.com>
-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) |