diff options
author | Roland McGrath <roland@gnu.org> | 1998-07-20 06:49:59 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-07-20 06:49:59 +0000 |
commit | a39b14357bcf19663de3994d7a4068ecea8a6a64 (patch) | |
tree | cb742e03ba123306da8cdc8989faa34a2a403606 /sutils/swapon.c | |
parent | 80eac17cd23114ed0d4eb44c2479c9a7e42460e1 (diff) |
1998-07-19 Roland McGrath <roland@baalperazim.frob.com>
* swapon.c (main): Fix return type to int, and use return.
Diffstat (limited to 'sutils/swapon.c')
-rw-r--r-- | sutils/swapon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sutils/swapon.c b/sutils/swapon.c index 3a23353f..e9123d3c 100644 --- a/sutils/swapon.c +++ b/sutils/swapon.c @@ -1,6 +1,6 @@ /* Add/remove paging devices - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> This file is part of the GNU Hurd. @@ -98,7 +98,7 @@ swaponoff (char *file, int add) store_free (store); } -void +int main(int argc, char *argv[]) { /* Parse our options... */ @@ -107,7 +107,7 @@ main(int argc, char *argv[]) switch (key) { case 'a': - argp_failure (state, 5, 0, "--standard: Not supported yet"); + argp_failure (state, 5, 0, "--standard: Not supported yet"); case ARGP_KEY_ARG: #ifdef SWAPOFF @@ -126,5 +126,5 @@ main(int argc, char *argv[]) argp_parse (&argp, argc, argv, 0, 0, 0); - exit(0); + return 0; } |