summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-03-05 17:29:00 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-03-05 17:29:00 +0000
commitc88276c17dda31294bc83a70e02e8cb1c69f5e8b (patch)
treee70a77b8b0f1bfe3cfff60db7ebcedc44e79e0b2 /usr.sbin
parent49a2c3314ad21618db2d1f92f77ec19b05e654a6 (diff)
need to eat whitespace at both ends of val
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/irr_parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c
index 9157323b6ef..6dcce304662 100644
--- a/usr.sbin/bgpctl/irr_parser.c
+++ b/usr.sbin/bgpctl/irr_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_parser.c,v 1.5 2007/03/04 18:13:13 henning Exp $ */
+/* $OpenBSD: irr_parser.c,v 1.6 2007/03/05 17:28:59 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -69,8 +69,7 @@ parse_response(FILE *f, enum qtype qtype)
warnx("no \":\" found!");
return (-1);
}
- while (ISWS(*val))
- val++;
+ EATWS(val);
switch (qtype) {
case QTYPE_OWNAS: