Module Name: src
Committed By: christos
Date: Thu Jan 24 17:53:49 UTC 2013
Modified Files:
src/sbin/mount: mount.c
Log Message:
use return instead of exit.
To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sbin/mount/mount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/mount/mount.c
diff -u src/sbin/mount/mount.c:1.97 src/sbin/mount/mount.c:1.98
--- src/sbin/mount/mount.c:1.97 Wed Jun 13 20:39:33 2012
+++ src/sbin/mount/mount.c Thu Jan 24 12:53:49 2013
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#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 @@ main(int argc, char *argv[])
prmount(&mntbuf[i]);
}
}
- exit(rval);
- /* NOTREACHED */
+ return rval;
case 1:
if (vfslist != NULL) {
usage();
@@ -325,8 +324,7 @@ out:
}
#endif
- exit(rval);
- /* NOTREACHED */
+ return rval;
}
int