diff options
author | mike <mike@FreeBSD.org> | 2001-09-09 00:40:04 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-09-09 00:40:04 +0000 |
commit | 776df1385ff18613031f5af0cd3cdf27655f4f8a (patch) | |
tree | 7aad5d34d75033fbf5178697cf887b6e8439b23a /usr.bin/users | |
parent | ebbd82f7467510ce5f92e93c0e588cabb870c77f (diff) | |
download | FreeBSD-src-776df1385ff18613031f5af0cd3cdf27655f4f8a.zip FreeBSD-src-776df1385ff18613031f5af0cd3cdf27655f4f8a.tar.gz |
Remove a bogus cast and lockdown users(1) with WARNS?=2
Submitted by: David Hill <david@phobia.ms>
Reviewed by: -audit
MFC after: 1 week
Diffstat (limited to 'usr.bin/users')
-rw-r--r-- | usr.bin/users/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/users/users.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/users/Makefile b/usr.bin/users/Makefile index d0825d0..7e0c8d2 100644 --- a/usr.bin/users/Makefile +++ b/usr.bin/users/Makefile @@ -1,5 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= users +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index 7acb268..16a4ecd 100644 --- a/usr.bin/users/users.c +++ b/usr.bin/users/users.c @@ -117,5 +117,5 @@ int scmp(p, q) const void *p, *q; { - return(strncmp((char *)p, (char *)q, UT_NAMESIZE)); + return(strncmp(p, q, UT_NAMESIZE)); } |