Date: Sun, 6 Nov 2011 08:15:30 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227166 - head/usr.bin/id Message-ID: <201111060815.pA68FUU2008422@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sun Nov 6 08:15:30 2011 New Revision: 227166 URL: http://svn.freebsd.org/changeset/base/227166 Log: Add missing static keywords to id(1) Modified: head/usr.bin/id/id.c Modified: head/usr.bin/id/id.c ============================================================================== --- head/usr.bin/id/id.c Sun Nov 6 08:15:23 2011 (r227165) +++ head/usr.bin/id/id.c Sun Nov 6 08:15:30 2011 (r227166) @@ -57,16 +57,16 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <unistd.h> -void id_print(struct passwd *, int, int, int); -void pline(struct passwd *); -void pretty(struct passwd *); -void auditid(void); -void group(struct passwd *, int); -void maclabel(void); -void usage(void); -struct passwd *who(char *); +static void id_print(struct passwd *, int, int, int); +static void pline(struct passwd *); +static void pretty(struct passwd *); +static void auditid(void); +static void group(struct passwd *, int); +static void maclabel(void); +static void usage(void); +static struct passwd *who(char *); -int isgroups, iswhoami; +static int isgroups, iswhoami; int main(int argc, char *argv[]) @@ -220,7 +220,7 @@ main(int argc, char *argv[]) exit(0); } -void +static void pretty(struct passwd *pw) { struct group *gr; @@ -260,7 +260,7 @@ pretty(struct passwd *pw) } } -void +static void id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid) { struct group *gr; @@ -324,7 +324,7 @@ id_print(struct passwd *pw, int use_ggl, } #ifdef USE_BSM_AUDIT -void +static void auditid(void) { auditinfo_t auditinfo; @@ -371,7 +371,7 @@ auditid(void) } #endif -void +static void group(struct passwd *pw, int nflag) { struct group *gr; @@ -411,7 +411,7 @@ group(struct passwd *pw, int nflag) free(groups); } -void +static void maclabel(void) { char *string; @@ -435,7 +435,7 @@ maclabel(void) free(string); } -struct passwd * +static struct passwd * who(char *u) { struct passwd *pw; @@ -455,7 +455,7 @@ who(char *u) /* NOTREACHED */ } -void +static void pline(struct passwd *pw) { @@ -471,7 +471,7 @@ pline(struct passwd *pw) } -void +static void usage(void) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111060815.pA68FUU2008422>