From 7e31ca15867b5fa1ccf7081ece2d8dc7b96f96f1 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 19:53:48 +0000 Subject: collapse state of some non-debugging #if [01]'d code --- server/dispatch.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'server/dispatch.c') 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) { -- cgit v1.2.3