summaryrefslogtreecommitdiff
path: root/zhm/zhm_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'zhm/zhm_server.c')
-rw-r--r--zhm/zhm_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zhm/zhm_server.c b/zhm/zhm_server.c
index 096d9cd..5435842 100644
--- a/zhm/zhm_server.c
+++ b/zhm/zhm_server.c
@@ -187,8 +187,7 @@ ZNotice_t *notice;
if (!strcmp(notice->z_opcode, SERVER_SHUTDOWN)) {
if (notice->z_message_len) {
addr = inet_addr(notice->z_message);
- if ((hp = gethostbyaddr(&addr,
- 4,
+ if ((hp = gethostbyaddr((char *)&addr, sizeof(addr),
AF_INET)) != NULL) {
(void)strcpy(suggested_server, hp->h_name);
new_server(suggested_server);