diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 23:48:07 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 23:48:07 +0000 |
commit | c78b6c41240257191ae3be8dc1e2d29109a7e76b (patch) | |
tree | b1e613365dbfe1a41c8c7d84d360452a22c4cf32 /usr.sbin/bgpd/config.c | |
parent | 47c312b4f6967df86d6174660cda5b5e313083db (diff) |
syscalls return -1 on err so test for == -1 instead of the < 0 found in very
few places, requested by theo
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r-- | usr.sbin/bgpd/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c index 39a20243bad..43ac8594a7c 100644 --- a/usr.sbin/bgpd/config.c +++ b/usr.sbin/bgpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.4 2003/12/24 13:49:21 henning Exp $ */ +/* $OpenBSD: config.c,v 1.5 2003/12/24 23:48:06 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -103,7 +103,7 @@ get_bgpid(void) localnet = inet_addr("127.0.0.0"); - if (getifaddrs(&ifap) < 0) + if (getifaddrs(&ifap) == -1) fatal("getifaddrs", errno); for (ifa = ifap; ifa; ifa = ifa->ifa_next) { |