From 9a7852569e3e0d5b404578e50bb0d918d252240a Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sun, 2 Jun 2019 05:50:52 -0500 Subject: usr.bin/id: make buildable with libbsd --- usr.bin/id/id.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index 720cc49..4c7aa71 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -27,20 +27,6 @@ * SUCH DAMAGE. */ -#include -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1991, 1993\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95"; -#else -__RCSID("$NetBSD: id.c,v 1.32 2011/09/16 15:39:26 joerg Exp $"); -#endif -#endif /* not lint */ - #include #include @@ -49,13 +35,14 @@ __RCSID("$NetBSD: id.c,v 1.32 2011/09/16 15:39:26 joerg Exp $"); #include #include #include +#include #include #include static void current(void); static void pretty(struct passwd *); static void group(struct passwd *, int); -__dead static void usage(void); +static void usage(void); static void user(struct passwd *); static struct passwd *who(char *); @@ -177,7 +164,7 @@ static void pretty(struct passwd *pw) { struct group *gr; - u_int eid, rid; + unsigned int eid, rid; char *login; if (pw) { @@ -265,7 +252,7 @@ user(struct passwd *pw) id = pw->pw_uid; (void)printf("uid=%u(%s)", id, pw->pw_name); - (void)printf(" gid=%lu", (u_long)pw->pw_gid); + (void)printf(" gid=%lu", (unsigned long)pw->pw_gid); if ((gr = getgrgid(pw->pw_gid)) != NULL) (void)printf("(%s)", gr->gr_name); ngroups = maxgroups + 1; -- cgit v1.2.3-70-g09d2