From 0caf2ae89d5586206d7ffe02c665d810f701fd5f Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Sun, 9 Sep 2001 00:40:04 +0000 Subject: [PATCH] Remove a bogus cast and lockdown users(1) with WARNS?=2 Submitted by: David Hill Reviewed by: -audit MFC after: 1 week --- usr.bin/users/Makefile | 2 ++ usr.bin/users/users.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/users/Makefile b/usr.bin/users/Makefile index d0825d01636..7e0c8d252a5 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 diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index 7acb26836e4..16a4ecd4079 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)); }