summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r--usr.sbin/bgpd/config.c4
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) {