summaryrefslogtreecommitdiff
path: root/sbin/ccdconfig
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-04 14:59:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-04 14:59:51 +0000
commit6b10c48d5b91c11eddd20e93cec4bea00792b84b (patch)
treec823043f6afecfd05fd28435619e5fc2d05322af /sbin/ccdconfig
parentdef0a55bccd5d217c525df2164ff92a51088f7db (diff)
return from main() don't exit
Diffstat (limited to 'sbin/ccdconfig')
-rw-r--r--sbin/ccdconfig/ccdconfig.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c
index e4da9d2ce91..6db794497cb 100644
--- a/sbin/ccdconfig/ccdconfig.c
+++ b/sbin/ccdconfig/ccdconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccdconfig.c,v 1.14 2000/09/30 16:06:33 aaron Exp $ */
+/* $OpenBSD: ccdconfig.c,v 1.15 2001/06/04 14:59:47 mickey Exp $ */
/* $NetBSD: ccdconfig.c,v 1.6 1996/05/16 07:11:18 thorpej Exp $ */
/*-
@@ -178,25 +178,20 @@ main(argc, argv)
case CCD_UNCONFIG:
setegid(getgid());
setgid(getgid());
-
- exit(do_single(argc, argv, action));
- /* NOTREACHED */
+ return (do_single(argc, argv, action));
case CCD_CONFIGALL:
case CCD_UNCONFIGALL:
-
setegid(getgid());
setgid(getgid());
-
- exit(do_all(action));
- /* NOTREACHED */
+ return (do_all(action));
case CCD_DUMP:
- exit(dump_ccd(argc, argv));
- /* NOTREACHED */
+ return (dump_ccd(argc, argv));
}
/* NOTREACHED */
- exit(0);
+
+ return (0);
}
static int