From 0a1b1120ff30703ff6e661a7b7901380f0ce4192 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Mon, 18 Mar 2013 00:19:59 -0400 Subject: Dewarn with -DDEBUG It's sort of nice to be able to build with debugging. --- server/dispatch.c | 8 -------- server/realm.c | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'server') diff --git a/server/dispatch.c b/server/dispatch.c index b1909e0..ea95d3a 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -36,11 +36,6 @@ nacktab_hashval(struct sockaddr_in sa, ZUnique_Id_t uid) { #define HOSTS_SIZE_INIT 256 -#ifdef DEBUG -const char *ZNoticeKinds[9] = {"UNSAFE", "UNACKED", "ACKED", "HMACK", - "HMCTL", "SERVACK", "SERVNAK", "CLIENTACK", - "STAT"}; -#endif /* * * External Routines: @@ -239,9 +234,6 @@ dispatch(ZNotice_t *notice, int authflag; ZRealm *realm; char *cp; -#ifdef DEBUG - char dbg_buf[BUFSIZ]; -#endif authflag = (auth == ZAUTH_YES); diff --git a/server/realm.c b/server/realm.c index f4ccabd..4f9ce2f 100644 --- a/server/realm.c +++ b/server/realm.c @@ -880,7 +880,8 @@ realm_control_dispatch(ZNotice_t *notice, ack(notice, who); } } else if (!strcmp(opcode, REALM_BOOT)) { - zdbug((LOG_DEBUG, "got a REALM_BOOT from %d (me %d)", server, me_server)); + zdbug((LOG_DEBUG, "got a REALM_BOOT from %s", + inet_ntoa(server->addr.sin_addr))); realm->state = REALM_STARTING; realm_set_server(who, realm); #ifdef REALM_MGMT -- cgit v1.2.3