aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 15:21:12 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 15:21:12 +0000
commit5493d36ce9f2c44b0c948a8610a4c52887451781 (patch)
tree5bdf06a374be4e055b99b4888c5a9d767b8a7a9d /utils.c
parent519916cedfa9a6ece255e84052519ba325e49522 (diff)
silence compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6898 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index d8dcfa6c7..203b098d8 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;