Thu Jan 24 17:53:49 2013 UTC ()
use return instead of exit.


(christos)
diff -r1.97 -r1.98 src/sbin/mount/mount.c

cvs diff -r1.97 -r1.98 src/sbin/mount/mount.c (expand / switch to context diff)
--- src/sbin/mount/mount.c 2012/06/14 00:39:33 1.97
+++ src/sbin/mount/mount.c 2013/01/24 17:53:49 1.98
@@ -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