p2pd: dump_packet is only used within the INCLUDE_DEBUG_OUTPUT define
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jan 2012 18:28:47 +0000 (19:28 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jan 2012 18:38:18 +0000 (19:38 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/p2pd/src/p2pd.c

index 00a119f..7fc6316 100644 (file)
@@ -100,7 +100,9 @@ bool is_broadcast(const struct sockaddr_in addr);
 bool is_multicast(const struct sockaddr_in addr);
 char * get_ipv4_str(uint32_t address, char *s, size_t maxlen);
 char * get_ipv6_str(unsigned char* address, char *s, size_t maxlen);
+#ifdef INCLUDE_DEBUG_OUTPUT
 void dump_packet(unsigned char* packet, int length);
+#endif
 bool check_and_mark_recent_packet(unsigned char *data, int len);
 
 /* -------------------------------------------------------------------------