summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 19:53:48 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 19:53:48 +0000
commit7e31ca15867b5fa1ccf7081ece2d8dc7b96f96f1 (patch)
treeac2b594342ac6a40f3e60f2de28e68066fd70ddd /server/dispatch.c
parent24297e5e21cee3105d221a4cf19fc9037bbedd36 (diff)
collapse state of some non-debugging #if [01]'d code
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index a17c32a..bd1f8fd 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -223,17 +223,6 @@ handle_packet(void)
}
}
-#if 0
- if (whoisit.sin_port != hm_port && whoisit.sin_port != hm_srv_port &&
- strcasecmp(new_notice.z_class, ZEPHYR_ADMIN_CLASS) != 0 &&
- whoisit.sin_port != srv_addr.sin_port &&
- new_notice.z_kind != CLIENTACK) {
- syslog(LOG_ERR, "bad port %s/%d", inet_ntoa(whoisit.sin_addr),
- ntohs(whoisit.sin_port));
- return;
- }
-#endif
-
message_notices.val++;
dispatch(&new_notice, authentic, &whoisit, from_server);
return;
@@ -273,11 +262,7 @@ dispatch(ZNotice_t *notice,
}
who2 = *who;
-#if 0
- if (0 && from_server) {
- /* incorporate server_dispatch here */
- }
-#endif
+
notice_class = make_string(notice->z_class,1);
if (from_server) {