From fc8b21401978bf891fbd13855ac6c8b1f07bae3c Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Wed, 2 Feb 2011 05:26:20 +0000 Subject: Explicitly define ZNotice_Kind constants + actually define the promised strings Since these are constants used in the protocol be explicit about what values the C compiler is assigning them, and that they can't be arbitrarily rearranged. Also, since we were promising strings for describing them in zephyr.h actually define the array. --- lib/Zinternal.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/Zinternal.c b/lib/Zinternal.c index f7fc940..119f731 100644 --- a/lib/Zinternal.c +++ b/lib/Zinternal.c @@ -1273,13 +1273,11 @@ Code_t Z_XmitFragment(ZNotice_t *notice, return(ZSendPacket(buf, len, wait)); } -#ifdef Z_DEBUG /* For debugging printing */ const char *const ZNoticeKinds[] = { "UNSAFE", "UNACKED", "ACKED", "HMACK", "HMCTL", "SERVACK", "SERVNAK", "CLIENTACK", "STAT" }; -#endif #ifdef Z_DEBUG -- cgit v1.2.3