url.c: Fixed compilation warning/error
Depending on compiler line 3505 could generate the following warning or error: * warning: ISO C90 forbids mixed declarations and code * A declaration cannot appear after an executable statement in a block * error C2275: 'size_t' : illegal use of this type as an expression
This commit is contained in:
@@ -3496,13 +3496,14 @@ static bool tld_check_name(struct SessionHandle *data,
|
|||||||
static void fix_hostname(struct SessionHandle *data,
|
static void fix_hostname(struct SessionHandle *data,
|
||||||
struct connectdata *conn, struct hostname *host)
|
struct connectdata *conn, struct hostname *host)
|
||||||
{
|
{
|
||||||
|
size_t len;
|
||||||
|
|
||||||
#ifndef USE_LIBIDN
|
#ifndef USE_LIBIDN
|
||||||
(void)data;
|
(void)data;
|
||||||
(void)conn;
|
(void)conn;
|
||||||
#elif defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#elif defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
(void)conn;
|
(void)conn;
|
||||||
#endif
|
#endif
|
||||||
size_t len;
|
|
||||||
|
|
||||||
/* set the name we use to display the host name */
|
/* set the name we use to display the host name */
|
||||||
host->dispname = host->name;
|
host->dispname = host->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user