From 7fd96e385515a75f611f82f136929080bbf63f9b Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sun, 26 Jul 2009 16:32:53 +0000 Subject: corrections for style and prototypes for inet_ntoa to pass -Wall -Werror (and probably not SEGV on a LP64 system) --- lib/ZParseNot.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/ZParseNot.c') diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c index 373727c..e98bad6 100644 --- a/lib/ZParseNot.c +++ b/lib/ZParseNot.c @@ -17,20 +17,19 @@ static const char rcsid_ZParseNotice_c[] = #include #include +#include +#include +#include inline static int _bad_packet(int line, char *where, ZNotice_t *notice, char *what) { if (__Zephyr_server) { syslog(LOG_ERR, "ZParseNotice: bad packet (%s) from %s.%d at line %d", - what, - inet_ntoa (notice->z_uid.zuid_addr.s_addr), - notice->z_port, line); + what, inet_ntoa(notice->z_uid.zuid_addr), notice->z_port, line); } else { #ifdef Z_DEBUG Z_debug("ZParseNotice: bad packet (%s) from %s.%d at line %d", - what, - inet_ntoa (notice->z_uid.zuid_addr.s_addr), - notice->z_port, line); + what, inet_ntoa(notice->z_uid.zuid_addr), notice->z_port, line); #endif } -- cgit v1.2.3