From 72c7c2e6250a9f37eab13f2eb18f9cecd4e9bb1c Mon Sep 17 00:00:00 2001 From: David Malone Date: Sat, 13 Apr 2002 21:09:55 +0000 Subject: [PATCH] Remove previously unneeded and now incorrect cast of user_from_uid() to a char *. Fix up vendor ID. --- usr.bin/systat/pigs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.bin/systat/pigs.c b/usr.bin/systat/pigs.c index 053ac53ffb1..9ac9d82040e 100644 --- a/usr.bin/systat/pigs.c +++ b/usr.bin/systat/pigs.c @@ -31,14 +31,15 @@ * SUCH DAMAGE. */ -#include - -__FBSDID("$FreeBSD$"); - -#ifdef lint -static const char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; +#if 0 +#ifndef lint +static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; +#endif /* not lint */ #endif +#include +__FBSDID("$FreeBSD$"); + /* * Pigs display from Bill Reeves at Lucasfilm */ @@ -121,8 +122,7 @@ showpigs() pname = ""; } else { - uname = (char *) - user_from_uid(pt[k].pt_kp->ki_uid, 0); + uname = user_from_uid(pt[k].pt_kp->ki_uid, 0); pname = pt[k].pt_kp->ki_comm; } wmove(wnd, y, 0);