aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_init.c')
-rw-r--r--ares/ares_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 20a23a340..bf4771de9 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -675,7 +675,7 @@ DhcpNameServer
{
if (bytes)
{
- line = (char *)malloc(bytes+1);
+ line = malloc(bytes+1);
if (RegQueryValueEx(mykey, NAMESERVER, NULL, &data_type,
(unsigned char *)line, &bytes) ==
ERROR_SUCCESS)
@@ -952,7 +952,7 @@ static int init_by_defaults(ares_channel channel)
size_t len = 64;
int res;
- hostname = (char *)malloc(len);
+ hostname = malloc(len);
if(!hostname) {
rc = ARES_ENOMEM;
goto error;