* Helpers for IDNA convertions.
*/
#ifdef USE_LIBIDN
-static bool is_ASCII_name (const char *hostname)
+static bool is_ASCII_name(const char *hostname)
{
const unsigned char *ch = (const unsigned char*)hostname;
/*
* Check if characters in hostname is allowed in Top Level Domain.
*/
-static bool tld_check_name (struct SessionHandle *data,
- const char *ace_hostname)
+static bool tld_check_name(struct SessionHandle *data,
+ const char *ace_hostname)
{
size_t err_pos;
char *uc_name = NULL;
infof(data, "Failed to convert %s to ACE; %s\n",
host->name, Curl_idn_strerror(conn,rc));
else {
- tld_check_name(data, ace_hostname);
+ /* tld_check_name() displays a warning if the host name contains
+ "illegal" characters for this TLD */
+ (void)tld_check_name(data, ace_hostname);
host->encalloc = ace_hostname;
/* change the name pointer to point to the encoded hostname */