From 94577d95532368a940bf0bb9334ba2c7eb858eb5 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 24 Sep 2017 01:03:26 -0400 Subject: fix warnings in lzcomp and md5 --- tools/lzcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lzcomp.c') 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"); -- cgit v1.2.3