summaryrefslogtreecommitdiffstats
path: root/usr.bin/rwall
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
commitb4339b74aded4c38ebcfe3a2a9b37b900abb8874 (patch)
treefb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/rwall
parent228b93ce829543fee06561687a63c17a7e821dfd (diff)
downloadFreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.zip
FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.tar.gz
ANSIify function definitions.
Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
Diffstat (limited to 'usr.bin/rwall')
-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