Skip to content
Snippets Groups Projects
Commit 20a7a4ca authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

silence compiler warning

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 39d27dba
Branches
Tags
No related merge requests found
...@@ -194,7 +194,7 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp) ...@@ -194,7 +194,7 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
if (dots != 3) if (dots != 3)
return NULL; return NULL;
memset(hp, 0, sizeof(struct ast_hostent)); 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 *); hp->hp.h_addr = hp->buf + sizeof(void *);
if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0) if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0)
return &hp->hp; return &hp->hp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment