summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-07-26 16:32:53 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-07-26 16:32:53 +0000
commit7fd96e385515a75f611f82f136929080bbf63f9b (patch)
treef90df06a06936cc0604deeaf44aa208f6e309e81 /lib
parentf2dd95b4fe7444ad16e8d523618a656ddcf6ba8c (diff)
corrections for style and prototypes for inet_ntoa to pass -Wall -Werror
(and probably not SEGV on a LP64 system)
Diffstat (limited to 'lib')
-rw-r--r--lib/ZParseNot.c11
1 files changed, 5 insertions, 6 deletions
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 <internal.h>
#include <syslog.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
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
}