diff --git a/utils.c b/utils.c index d8dcfa6c7cc90c5e1f7d07d9e3d08115e0b0c3cd..203b098d89ac1a9bc01ffece7ab08e6a4c417ab7 100755 --- a/utils.c +++ b/utils.c @@ -194,7 +194,7 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp) if (dots != 3) return NULL; memset(hp, 0, sizeof(struct ast_hostent)); - hp->hp.h_addr_list = hp->buf; + hp->hp.h_addr_list = (void *) hp->buf; hp->hp.h_addr = hp->buf + sizeof(void *); if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0) return &hp->hp;