mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
silence compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
utils.c
2
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;
|
||||
|
Reference in New Issue
Block a user