summaryrefslogtreecommitdiffstats
path: root/usr.bin/rwall/rwall.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rwall/rwall.c')
-rw-r--r--usr.bin/rwall/rwall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/rwall/rwall.c b/usr.bin/rwall/rwall.c
index ea5f77e..861c8cf 100644
--- a/usr.bin/rwall/rwall.c
+++ b/usr.bin/rwall/rwall.c
@@ -177,7 +177,7 @@ makemsg(const char *fname)
mbuf = malloc(mbufsize);
if (mbuf == NULL)
err(1, "out of memory");
- if (fread(mbuf, sizeof(*mbuf), mbufsize, fp) != mbufsize)
+ if (fread(mbuf, sizeof(*mbuf), mbufsize, fp) != (u_int)mbufsize)
err(1, "can't read temporary file");
close(fd);
}
OpenPOWER on IntegriCloud