/* Convert (and downcase) ACE-name back into locale's character set */
rc = idna_to_unicode_lzlz(ace_hostname, &uc_name, 0);
if(rc != IDNA_SUCCESS)
- return (FALSE);
+ return FALSE;
rc = tld_check_lz(uc_name, &err_pos, NULL);
#ifndef CURL_DISABLE_VERBOSE_STRINGS
#endif /* CURL_DISABLE_VERBOSE_STRINGS */
if(uc_name)
idn_free(uc_name);
- return (bool)(rc == TLD_SUCCESS);
+ if(rc != TLD_SUCCESS)
+ return FALSE;
+
+ return TRUE;
}
#endif
/* we need to create new URL with the new port number */
char *url;
/* FTPS connections have the FTP bit set too, so they match as well */
- bool isftp = (bool)conn->protocol & PROT_FTP;
+ bool isftp = (bool)(conn->protocol & PROT_FTP);
/*
* This synthesized URL isn't always right--suffixes like ;type=A