diff options
author | 1999-03-23 08:10:20 +0000 | |
---|---|---|
committer | 1999-03-23 08:10:20 +0000 | |
commit | 8cfed8a7bfdaf8e58441e384792d020b78fc9a5c (patch) | |
tree | aff29f4f4d3095da8842e4172f95b2badef016d9 | |
parent | tail anchor, to fetch 2nd manpage name, which is less likely to be over-written by the mail title; d (diff) | |
download | wireguard-openbsd-8cfed8a7bfdaf8e58441e384792d020b78fc9a5c.tar.xz wireguard-openbsd-8cfed8a7bfdaf8e58441e384792d020b78fc9a5c.zip |
never spit out two error messages, it is bad style
-rw-r--r-- | usr.sbin/brconfig/brconfig.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/brconfig/brconfig.c b/usr.sbin/brconfig/brconfig.c index cdddde95a72..496fb241a23 100644 --- a/usr.sbin/brconfig/brconfig.c +++ b/usr.sbin/brconfig/brconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brconfig.c,v 1.9 1999/03/19 22:47:33 jason Exp $ */ +/* $OpenBSD: brconfig.c,v 1.10 1999/03/23 08:10:20 deraadt Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -715,10 +715,8 @@ is_bridge(s, brdg) strncpy(ifr.ifr_name, brdg, sizeof(ifr.ifr_name) - 1); ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; - if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) { - warn("ioctl(SIOCGIFFLAGS)"); + if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) return (0); - } ifbac.ifbac_len = 0; strncpy(ifbac.ifbac_name, brdg, sizeof(ifbac.ifbac_name) - 1); |