summaryrefslogtreecommitdiff
path: root/ext4_utils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-08-02 16:29:22 -0700
committerElliott Hughes <enh@google.com>2018-08-02 16:30:16 -0700
commit4f6439ca7cb43617b4e42a456e921d10db11502e (patch)
treed3a06faad25c907dccafb595384fd9653fb6b08e /ext4_utils
parentfde6f72cf0273cc419eeae841ec51988b7aa9650 (diff)
downloadextras-4f6439ca7cb43617b4e42a456e921d10db11502e.tar.gz
fgetc(3) returns int.
The real WTF here might be that we copy an entire file byte-by-byte if we ever take this path... Bug: http://b/112146629 Bug: https://www.viva64.com/en/b/0579/ Test: builds Change-Id: I8bfe6befa3851a839b499ac222c30d26a82bc075
Diffstat (limited to 'ext4_utils')
-rw-r--r--ext4_utils/blk_alloc_to_base_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/blk_alloc_to_base_fs.c b/ext4_utils/blk_alloc_to_base_fs.c
index 877daea7..664648d1 100644
--- a/ext4_utils/blk_alloc_to_base_fs.c
+++ b/ext4_utils/blk_alloc_to_base_fs.c
@@ -55,7 +55,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
if (fscanf(blk_alloc_file, "Base EXT4 version %" ___STRING(MAX_FILE_VERSION) "s", file_version) > 0) {
- char c;
+ int c;
printf("%s is already in *.base_fs format, just copying into %s...\n", argv[1], argv[2]);
rewind(blk_alloc_file);
while ((c = fgetc(blk_alloc_file)) != EOF) {