diff options
author | 2015-10-11 20:17:49 +0000 | |
---|---|---|
committer | 2015-10-11 20:17:49 +0000 | |
commit | 3c67c8fadd3f740fd13d3cf3ebc87f084a6e2ccd (patch) | |
tree | a20dbca16807e25e501073bc5ced32dde7e63f08 | |
parent | Handle the blackhole well-known community in bgpctl as well (print it (diff) | |
download | wireguard-openbsd-3c67c8fadd3f740fd13d3cf3ebc87f084a6e2ccd.tar.xz wireguard-openbsd-3c67c8fadd3f740fd13d3cf3ebc87f084a6e2ccd.zip |
Don't return errno from main()
ok beck@ doug@ deraadt@ tedu@
-rw-r--r-- | bin/sleep/sleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index fe49ccff47e..d25ad44749f 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.23 2015/10/09 01:37:06 deraadt Exp $ */ +/* $OpenBSD: sleep.c,v 1.24 2015/10/11 20:17:49 guenther Exp $ */ /* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */ /* @@ -107,7 +107,7 @@ main(int argc, char *argv[]) if ((secs > 0) || (nsecs > 0)) if (nanosleep(&rqtp, NULL)) - return (errno); + err(1, NULL); return (0); } |