diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-10-29 08:50:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-10-29 08:50:34 +0000 |
commit | 9ff3cb7411dc659bddd0c8a37ea07c3737a74664 (patch) | |
tree | 7ce5f78861283fb261f49ddff4bcaa0839080eea /ares_parse_srv_reply.c | |
parent | 991c93cf5404c9143313fac15d784496c25ba8ed (diff) | |
download | c-ares-9ff3cb7411dc659bddd0c8a37ea07c3737a74664.tar.gz c-ares-9ff3cb7411dc659bddd0c8a37ea07c3737a74664.tar.bz2 c-ares-9ff3cb7411dc659bddd0c8a37ea07c3737a74664.zip |
use 'ares_srv_reply' for proper name-spacing
Diffstat (limited to 'ares_parse_srv_reply.c')
-rw-r--r-- | ares_parse_srv_reply.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c index c26d59f..b0e15eb 100644 --- a/ares_parse_srv_reply.c +++ b/ares_parse_srv_reply.c @@ -54,14 +54,14 @@ int ares_parse_srv_reply (const unsigned char *abuf, int alen, - struct srv_reply **srv_out, int *nsrvreply) + struct ares_srv_reply **srv_out, int *nsrvreply) { unsigned int qdcount, ancount; const unsigned char *aptr; int status, i, rr_type, rr_class, rr_len; long len; char *hostname = NULL, *rr_name = NULL; - struct srv_reply *srv = NULL; + struct ares_srv_reply *srv = NULL; /* Set *srv_out to NULL for all failure cases. */ if (srv_out) @@ -95,8 +95,8 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen, } aptr += len + QFIXEDSZ; - /* Allocate srv_reply array; ancount gives an upper bound */ - srv = malloc ((ancount) * sizeof (struct srv_reply)); + /* Allocate ares_srv_reply array; ancount gives an upper bound */ + srv = malloc ((ancount) * sizeof (struct ares_srv_reply)); if (!srv) { free (hostname); |