summaryrefslogtreecommitdiff
path: root/sbin/raidctl
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/raidctl
parentdef0a55bccd5d217c525df2164ff92a51088f7db (diff)
return from main() don't exit
Diffstat (limited to 'sbin/raidctl')
-rw-r--r--sbin/raidctl/raidctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c
index a23d69b3632..4e34089259c 100644
--- a/sbin/raidctl/raidctl.c
+++ b/sbin/raidctl/raidctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raidctl.c,v 1.5 2000/01/11 18:03:45 peter Exp $ */
+/* $OpenBSD: raidctl.c,v 1.6 2001/06/04 14:59:49 mickey Exp $ */
/* $NetBSD: raidctl.c,v 1.11 2000/01/09 03:06:35 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -252,7 +252,7 @@ main(argc,argv)
if ((fd = open( dev_name, O_RDWR, 0640)) < 0) {
fprintf(stderr, "%s: unable to open device file: %s\n",
__progname, dev_name);
- exit(1);
+ return (1);
}
@@ -317,7 +317,7 @@ main(argc,argv)
}
close(fd);
- exit(0);
+ return (0);
}
void