summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-07-20 07:11:54 +0000
committerRoland McGrath <roland@gnu.org>1998-07-20 07:11:54 +0000
commitc14711b67a3cc289c73a37ec207b9c615df36ce6 (patch)
treef30f7f847cc0e1a1fa308512c7e5fd145948e64d /utils
parent4fca97739b60e2eed148bcb9b2002d694a3ce60d (diff)
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* ps.c (main): Fix return type to int, and use return. * ids.c (main): Likewise. * w.c (main): Likewise. * login.c (main): Likewise. * settrans.c (main): Likewise. * showtrans.c (main): Likewise. * fsysopts.c (main): Likewise. * storeinfo.c (main): Likewise. * unsu.c (main): Likewise. * setauth.c (main): Likewise. * rmauth.c (main): Likewise. * addauth.c (main): Likewise.
Diffstat (limited to 'utils')
-rw-r--r--utils/addauth.c6
-rw-r--r--utils/rmauth.c8
-rw-r--r--utils/setauth.c8
-rw-r--r--utils/unsu.c8
4 files changed, 15 insertions, 15 deletions
diff --git a/utils/addauth.c b/utils/addauth.c
index 7c199989..0932a33f 100644
--- a/utils/addauth.c
+++ b/utils/addauth.c
@@ -1,6 +1,6 @@
/* Add authentication to selected processes
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -41,7 +41,7 @@ static char doc[] =
extern error_t
get_nonsugid_ids (struct idvec *uids, struct idvec *gids);
-void
+int
main (int argc, char *argv[])
{
int i;
@@ -96,5 +96,5 @@ main (int argc, char *argv[])
}
}
- exit (0);
+ return 0;
}
diff --git a/utils/rmauth.c b/utils/rmauth.c
index 77169826..4c68cd18 100644
--- a/utils/rmauth.c
+++ b/utils/rmauth.c
@@ -1,6 +1,6 @@
/* Remove authentication from selected processes
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -48,7 +48,7 @@ static struct argp_child child_argps[] = {{ &frobauth_ea_argp }, { 0 }};
static char doc[] =
"Remove user/group ids from the authentication of selected processes";
-void
+int
main (int argc, char *argv[])
{
int save = 0; /* save effective ids */
@@ -115,7 +115,7 @@ main (int argc, char *argv[])
argp_parse (&argp, argc, argv, 0, 0, &frobauth);
if (frobauth_modify (&frobauth, 0, 0, modify, print_info, 0))
- exit (0);
+ return 0;
else
- exit (1);
+ return 1;
}
diff --git a/utils/setauth.c b/utils/setauth.c
index a039e3c6..73f221a0 100644
--- a/utils/setauth.c
+++ b/utils/setauth.c
@@ -1,6 +1,6 @@
/* Change the authentication of selected processes
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -52,7 +52,7 @@ static char doc[] =
extern error_t
get_nonsugid_ids (struct idvec *uids, struct idvec *gids);
-void
+int
main (int argc, char *argv[])
{
error_t err;
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
error (16, err, "Authentication failure");
if (frobauth_modify (&frobauth, &auth, 1, modify, print_info, 0))
- exit (0);
+ return 0;
else
- exit (1);
+ return 1;
}
diff --git a/utils/unsu.c b/utils/unsu.c
index addb7e47..bea4c98a 100644
--- a/utils/unsu.c
+++ b/utils/unsu.c
@@ -1,6 +1,6 @@
/* Attempt to undo a previous su
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -41,7 +41,7 @@ static char doc[] =
" current effective ids and the first two available ids, and then"
" making the first remaining available id the current effective id.";
-void
+int
main (int argc, char *argv[])
{
struct frobauth frobauth = FROBAUTH_INIT;
@@ -84,7 +84,7 @@ main (int argc, char *argv[])
argp_parse (&argp, argc, argv, 0, 0, &frobauth);
if (frobauth_modify (&frobauth, 0, 0, modify, print_info, 0))
- exit (0);
+ return 0;
else
- exit (1);
+ return 1;
}