summaryrefslogtreecommitdiff
path: root/ares_parse_ptr_reply.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 04:28:43 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 04:28:43 +0000
commit5d2ace75a361e29b71f039420d9c1f36e6991cd8 (patch)
tree86cb3880241bee6a330d583192ee002087ac6dcf /ares_parse_ptr_reply.c
parent4f33fdb183870bdef5a971a5735e3aabb271bd1a (diff)
downloadc-ares-5d2ace75a361e29b71f039420d9c1f36e6991cd8.tar.gz
c-ares-5d2ace75a361e29b71f039420d9c1f36e6991cd8.tar.bz2
c-ares-5d2ace75a361e29b71f039420d9c1f36e6991cd8.zip
remove unnecessary typecasting of realloc()
Diffstat (limited to 'ares_parse_ptr_reply.c')
-rw-r--r--ares_parse_ptr_reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c
index 070bce8..cce6471 100644
--- a/ares_parse_ptr_reply.c
+++ b/ares_parse_ptr_reply.c
@@ -119,7 +119,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr,
strncpy(aliases[aliascnt], rr_data, strlen(rr_data)+1);
aliascnt++;
if ((aliascnt%8)==0)
- aliases = (char **) realloc(aliases, (aliascnt/16+1) * sizeof(char *));
+ aliases = realloc(aliases, (aliascnt/16+1) * sizeof(char *));
}
if (rr_class == C_IN && rr_type == T_CNAME)