summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2011-04-10 22:12:35 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2011-04-10 22:12:35 +0000
commite872cfc4baaefdad4e4daef020701bd894ee400a (patch)
tree8c591044d1c86470ea66165cd06127dd5ce52106 /usr.sbin
parente4d0c2638a6352a9f767ce1af23d6e60360b5b44 (diff)
Correct the logic on when fib-update is set. Test the flag don't
bitwise or it.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/dvmrpd/printconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dvmrpd/printconf.c b/usr.sbin/dvmrpd/printconf.c
index bfc4bd56c07..7921b5540d5 100644
--- a/usr.sbin/dvmrpd/printconf.c
+++ b/usr.sbin/dvmrpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.1 2006/06/01 14:12:20 norby Exp $ */
+/* $OpenBSD: printconf.c,v 1.2 2011/04/10 22:12:34 jsg Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -35,10 +35,10 @@ void print_iface(struct iface *);
void
print_mainconf(struct dvmrpd_conf *conf)
{
- if (conf->flags |= DVMRPD_FLAG_NO_FIB_UPDATE)
- printf("fib-update yes\n");
- else
+ if (conf->flags & DVMRPD_FLAG_NO_FIB_UPDATE)
printf("fib-update no\n");
+ else
+ printf("fib-update yes\n");
}
void