summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
committerJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
commit53398947a1482e8b83e204186969af6147eaae6e (patch)
treebf4de064df1f022c2e01051b45cafc454ed839c4 /src/id.c
parent5e14cce7ae90f69cf4609b7731377e934e79c219 (diff)
downloadcoreutils-53398947a1482e8b83e204186969af6147eaae6e.tar.xz
Protoize and __P-protect forward dcls.
Diffstat (limited to 'src/id.c')
-rw-r--r--src/id.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/id.c b/src/id.c
index 38a37f008..5864415d8 100644
--- a/src/id.c
+++ b/src/id.c
@@ -46,11 +46,11 @@ gid_t getegid ();
char *xmalloc ();
int getugroups ();
-static void print_user ();
-static void print_group ();
-static void print_group_list ();
-static void print_full_info ();
-static void usage ();
+static void print_user __P ((int uid));
+static void print_group __P ((int gid));
+static void print_group_list __P ((char *username));
+static void print_full_info __P ((char *username));
+static void usage __P ((int status));
/* The name this program was run with. */
char *program_name;
@@ -96,9 +96,7 @@ static struct option const longopts[] =
};
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int optc;
@@ -181,8 +179,7 @@ main (argc, argv)
/* Print the name or value of user ID UID. */
static void
-print_user (uid)
- int uid;
+print_user (int uid)
{
struct passwd *pwd = NULL;
@@ -202,8 +199,7 @@ print_user (uid)
/* Print the name or value of group ID GID. */
static void
-print_group (gid)
- int gid;
+print_group (int gid)
{
struct group *grp = NULL;
@@ -223,8 +219,7 @@ print_group (gid)
/* Print all of the distinct groups the user is in . */
static void
-print_group_list (username)
- char *username;
+print_group_list (char *username)
{
print_group (rgid);
if (egid != rgid)
@@ -269,8 +264,7 @@ print_group_list (username)
/* Print all of the info about the user's user and group IDs. */
static void
-print_full_info (username)
- char *username;
+print_full_info (char *username)
{
struct passwd *pwd;
struct group *grp;
@@ -349,8 +343,7 @@ print_full_info (username)
}
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),