summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-11-01 06:50:15 +0000
committerJim Meyering <jim@meyering.net>1992-11-01 06:50:15 +0000
commitcf5cedb71a8ee923d78d3f66e52ecddbf7a8d994 (patch)
treef17fae9aa7c21eeab8cec5cacb1464152c08bd98 /src/id.c
parentccbd1d7dc5189f4637468a8136f672e60ee0e531 (diff)
downloadcoreutils-cf5cedb71a8ee923d78d3f66e52ecddbf7a8d994.tar.xz
Make file-scope variable static.
Diffstat (limited to 'src/id.c')
-rw-r--r--src/id.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/id.c b/src/id.c
index beddc1356..1c9482fc6 100644
--- a/src/id.c
+++ b/src/id.c
@@ -68,28 +68,28 @@ void usage ();
char *program_name;
/* If nonzero, output only the group ID(s). -g */
-int just_group = 0;
+static int just_group = 0;
/* If nonzero, output user/group name instead of ID number. -n */
-int use_name = 0;
+static int use_name = 0;
/* If nonzero, output real UID/GID instead of default effective UID/GID. -r */
-int use_real = 0;
+static int use_real = 0;
/* If nonzero, output only the user ID(s). -u */
-int just_user = 0;
+static int just_user = 0;
/* If nonzero, output only the supplementary groups. -G */
-int just_group_list = 0;
+static int just_group_list = 0;
/* The real and effective IDs of the user to print. */
-uid_t ruid, euid;
-gid_t rgid, egid;
+static uid_t ruid, euid;
+static gid_t rgid, egid;
/* The number of errors encountered so far. */
-int problems = 0;
+static int problems = 0;
-struct option longopts[] =
+static struct option longopts[] =
{
{"group", 0, NULL, 'g'},
{"name", 0, NULL, 'n'},