summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relay.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-04-10 18:18:27 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-04-10 18:18:27 +0000
commit3e6a7271542294e4bb0e9545f01a7f685f33de5f (patch)
tree79ac163df53987c6ff9c769fb09695fdca07d10e /usr.sbin/relayd/relay.c
parent947570c2dfa143c02843251a4a25174dc82b8f6d (diff)
it is a better idea to handle all enum values in the switch statement
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r--usr.sbin/relayd/relay.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 0929369ebc9..391ec474e1b 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.23 2007/04/10 18:14:17 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.24 2007/04/10 18:18:26 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1266,9 +1266,7 @@ relay_read_http(struct bufferevent *bev, void *arg)
continue;
cre->nodes[pn->id] = 0;
break;
- case NODE_ACTION_APPEND:
- case NODE_ACTION_CHANGE:
- case NODE_ACTION_EXPECT:
+ default:
if (cre->nodes[pn->id]) {
cre->nodes[pn->id] = 0;
continue;