summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-09 22:32:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-09 22:32:53 +0000
commit0215be619ffd3d3427a6e8c39aa07aac02380cdf (patch)
treec08204134e0e1e1ba08b671db728bc47d4967dd4 /usr.sbin
parenta6c917daee50fb5ed081169a1019666a8bfcd23a (diff)
use macro argument
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hoststated/parse.y4
-rw-r--r--usr.sbin/relayd/parse.y4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y
index 67411ba6c02..fa1103b827a 100644
--- a/usr.sbin/hoststated/parse.y
+++ b/usr.sbin/hoststated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.60 2007/10/05 15:50:56 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.61 2007/10/09 22:32:52 deraadt Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -1417,7 +1417,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/relayd/parse.y b/usr.sbin/relayd/parse.y
index 67411ba6c02..fa1103b827a 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.60 2007/10/05 15:50:56 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.61 2007/10/09 22:32:52 deraadt Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -1417,7 +1417,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 {