diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-09 03:24:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-09 03:24:11 +0000 |
commit | d6685a5c97ce71b163917bbafb3d6834a374aae4 (patch) | |
tree | 5fc3fa2b71c9cb26c623450c28937cc6b0ae3811 /usr.sbin/route6d | |
parent | cd18833f3dc056e8dce4614edaada4d1e9cadaf8 (diff) |
exit(-#) is wrong
Diffstat (limited to 'usr.sbin/route6d')
-rw-r--r-- | usr.sbin/route6d/route6d.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index cb17b634e2f..d6aae072c6b 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route6d.c,v 1.16 2001/03/08 03:24:57 itojun Exp $ */ +/* $OpenBSD: route6d.c,v 1.17 2001/03/09 03:24:10 deraadt Exp $ */ /* $KAME: route6d.c,v 1.60 2001/03/08 02:15:42 onoe Exp $ */ /* @@ -31,7 +31,7 @@ */ #if 0 -static char _rcsid[] = "$OpenBSD: route6d.c,v 1.16 2001/03/08 03:24:57 itojun Exp $"; +static char _rcsid[] = "$OpenBSD: route6d.c,v 1.17 2001/03/09 03:24:10 deraadt Exp $"; #endif #include <stdio.h> @@ -1531,7 +1531,7 @@ rtrecv() if ((len = read(rtsock, buf, sizeof(buf))) < 0) { perror("read from rtsock"); - exit(-1); + exit(1); } if (len < sizeof(*rtm)) { trace(1, "short read from rtsock: %d (should be > %lu)\n", @@ -2760,12 +2760,12 @@ getroute(np, gw) if (errno == ESRCH) /* No such route found */ return NULL; perror("write to rtsock"); - exit(-1); + exit(1); } do { if ((len = read(rtsock, buf, sizeof(buf))) < 0) { perror("read from rtsock"); - exit(-1); + exit(1); } rtm = (struct rt_msghdr *)buf; } while (rtm->rtm_seq != myseq || rtm->rtm_pid != pid); |