summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-09-11 23:06:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-09-11 23:06:38 +0000
commitd4f37d4bd18236ed2817ff6284f7691613646176 (patch)
tree8fd22981574c8e7d143dc732ceb06e9d4a7c00a9 /usr.sbin
parent0de9a172671305cf5ab28653ded3dc58a1b00f0a (diff)
macro argument unused, using local instead; spotted by mpf
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/dvmrpd/parse.y4
-rw-r--r--usr.sbin/ripd/parse.y4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y
index 22f785cd6b1..e17f79fdc63 100644
--- a/usr.sbin/dvmrpd/parse.y
+++ b/usr.sbin/dvmrpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.5 2007/09/11 22:15:20 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.6 2007/09/11 23:06:37 deraadt Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -553,7 +553,7 @@ top:
}
#define allowed_to_end_number(x) \
- (isspace(x) || c == ')' || c ==',' || c == '/' || c == '}')
+ (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}')
if (c == '-' || isdigit(c)) {
do {
diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y
index 16f8de40b51..7c5d3ae70a1 100644
--- a/usr.sbin/ripd/parse.y
+++ b/usr.sbin/ripd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.7 2007/09/11 22:15:17 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.8 2007/09/11 23:06:37 deraadt Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -560,7 +560,7 @@ top:
}
#define allowed_to_end_number(x) \
- (isspace(x) || c == ')' || c ==',' || c == '/' || c == '}')
+ (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}')
if (c == '-' || isdigit(c)) {
do {