{
if (bytes)
{
- line = (char *)malloc(bytes+1);
+ line = malloc(bytes+1);
if (RegQueryValueEx(mykey, NAMESERVER, NULL, &data_type,
(unsigned char *)line, &bytes) ==
ERROR_SUCCESS)
size_t len = 64;
int res;
- hostname = (char *)malloc(len);
+ hostname = malloc(len);
if(!hostname) {
rc = ARES_ENOMEM;
goto error;
/* Examine each answer resource record (RR) in turn. */
hostname = NULL;
- aliases = (char **) malloc(8 * sizeof(char *));
+ aliases = malloc(8 * sizeof(char *));
if (!aliases)
{
free(ptrname);