diff options
author | yenatch <yenatch@gmail.com> | 2017-09-24 01:25:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-24 01:25:03 -0400 |
commit | 01caa369ec5f3d49d151c8323ac86bd7e1df040a (patch) | |
tree | b3895b7fe5aff89acd0e01d3f89aa58a94c6f628 /tools/lzcomp.c | |
parent | 17448c51a51bb3ddd20b0349ae274980638b0980 (diff) | |
parent | 94577d95532368a940bf0bb9334ba2c7eb858eb5 (diff) |
Merge pull request #379 from yenatch/tools
Refactor scan_includes and add warnings for tools
Diffstat (limited to 'tools/lzcomp.c')
-rw-r--r-- | tools/lzcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lzcomp.c b/tools/lzcomp.c index c3fae1001..e0a88e44a 100644 --- a/tools/lzcomp.c +++ b/tools/lzcomp.c @@ -113,7 +113,7 @@ void write_command_to_file (FILE * fp, struct command command, const unsigned ch *(pos ++) = command.value; } } - if (fwrite(buf, 1, pos - buf, fp) != (pos - buf)) error_exit(1, "could not write command to compressed output"); + if ((int)fwrite(buf, 1, pos - buf, fp) != (pos - buf)) error_exit(1, "could not write command to compressed output"); if (command.command) return; command.count ++; if (fwrite(input_stream + command.value, 1, command.count, fp) != command.count) error_exit(1, "could not write data to compressed output"); |