diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-05-20 08:04:49 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-05-20 08:04:49 +0000 |
commit | 059ec90667c656b99518b0f95e0550ccf8644314 (patch) | |
tree | 36540d44f45fc49ec53305dd635c90485a7743ae | |
parent | 60143754b66d077f64ec4794bc3e80ad1db0dcc5 (diff) |
trade 3 exits for return
-rw-r--r-- | bin/sleep/sleep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index 9b91c13674c..96dffd86303 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.9 2000/01/05 01:58:03 pjanzen Exp $ */ +/* $OpenBSD: sleep.c,v 1.10 2001/05/20 08:04:48 mickey Exp $ */ /* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: sleep.c,v 1.9 2000/01/05 01:58:03 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: sleep.c,v 1.10 2001/05/20 08:04:48 mickey Exp $"; #endif #endif /* not lint */ @@ -94,7 +94,7 @@ main(argc, argv) if (!isdigit(*cp)) usage(); t = (secs * 10) + (*cp++ - '0'); if (t / 10 != secs) /* oflow */ - exit(EINVAL); + return (EINVAL); secs = t; } @@ -122,8 +122,8 @@ main(argc, argv) if ((secs > 0) || (nsecs > 0)) if (nanosleep(&rqtp, NULL)) - exit(errno); - exit(0); + return (errno); + return (0); } void |