From a39b14357bcf19663de3994d7a4068ecea8a6a64 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Jul 1998 06:49:59 +0000 Subject: 1998-07-19 Roland McGrath * swapon.c (main): Fix return type to int, and use return. --- sutils/swapon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sutils') 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 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; } -- cgit v1.2.3