diff options
author | Roland McGrath <roland@gnu.org> | 1998-07-20 06:56:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-07-20 06:56:48 +0000 |
commit | 904537365266ddea9e45dcef10080f42fabd4dbe (patch) | |
tree | 9d970387fb913454db0917c5a56eed70096b948a /utils/login.c | |
parent | 9e193425ea6e3161f0a752a3075622209ac70880 (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.
Diffstat (limited to 'utils/login.c')
-rw-r--r-- | utils/login.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/login.c b/utils/login.c index a9b3d8b8..02542ae2 100644 --- a/utils/login.c +++ b/utils/login.c @@ -1,6 +1,6 @@ /* Hurdish login - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -365,7 +365,7 @@ dog (time_t timeout, pid_t pid, char **argv) } } -void +int main(int argc, char *argv[]) { int i; @@ -857,7 +857,7 @@ main(int argc, char *argv[]) /* No more authentications to fail, so cross our fingers and add our utmp entry. */ - + if (pid == sid) /* Only add utmp entries for the session leader. */ add_utmp_entry (args, args_len, !idvec_contains (&parent_uids, 0)); @@ -885,5 +885,5 @@ main(int argc, char *argv[]) if (err) error(5, err, "%s", shell); - exit(0); + return 0; } |