silence compiler warning
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 15:21:12 +0000 (15:21 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 15:21:12 +0000 (15:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6898 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index d8dcfa6..203b098 100755 (executable)
--- 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));
                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;
                hp->hp.h_addr = hp->buf + sizeof(void *);
                if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0)
                        return &hp->hp;