summaryrefslogtreecommitdiffstats
path: root/usr.bin/users
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-09-09 00:40:04 +0000
committermike <mike@FreeBSD.org>2001-09-09 00:40:04 +0000
commit776df1385ff18613031f5af0cd3cdf27655f4f8a (patch)
tree7aad5d34d75033fbf5178697cf887b6e8439b23a /usr.bin/users
parentebbd82f7467510ce5f92e93c0e588cabb870c77f (diff)
downloadFreeBSD-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/Makefile2
-rw-r--r--usr.bin/users/users.c2
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));
}
OpenPOWER on IntegriCloud