Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount use return instead of exit.
details: https://anonhg.NetBSD.org/src/rev/399e3427a1fd
branches: trunk
changeset: 784311:399e3427a1fd
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 24 17:53:49 2013 +0000
description:
use return instead of exit.
diffstat:
sbin/mount/mount.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 9fca294818af -r 399e3427a1fd sbin/mount/mount.c
--- a/sbin/mount/mount.c Thu Jan 24 17:50:08 2013 +0000
+++ b/sbin/mount/mount.c Thu Jan 24 17:53:49 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.c,v 1.97 2012/06/14 00:39:33 christos Exp $ */
+/* $NetBSD: mount.c,v 1.98 2013/01/24 17:53:49 christos Exp $ */
/*
* Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#else
-__RCSID("$NetBSD: mount.c,v 1.97 2012/06/14 00:39:33 christos Exp $");
+__RCSID("$NetBSD: mount.c,v 1.98 2013/01/24 17:53:49 christos Exp $");
#endif
#endif /* not lint */
@@ -204,8 +204,7 @@
prmount(&mntbuf[i]);
}
}
- exit(rval);
- /* NOTREACHED */
+ return rval;
case 1:
if (vfslist != NULL) {
usage();
@@ -325,8 +324,7 @@
}
#endif
- exit(rval);
- /* NOTREACHED */
+ return rval;
}
int
Home |
Main Index |
Thread Index |
Old Index