url.c: Fixed compilation warning
authorSteve Holme <steve_holme@hotmail.com>
Sun, 1 Sep 2013 12:30:12 +0000 (13:30 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 1 Sep 2013 12:30:12 +0000 (13:30 +0100)
An enumerated type is mixed with another type

lib/url.c

index 2f72bc146517e16d51290f97c89d5693c454dc80..0ec0a96b921ac89dc5b8e527eefbbce88302d3d7 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -4795,9 +4795,9 @@ static CURLcode parse_remote_port(struct SessionHandle *data,
  * Override the login details from the URL with that in the CURLOPT_USERPWD
  * option or a .netrc file, if applicable.
  */
-static int override_login(struct SessionHandle *data,
-                          struct connectdata *conn,
-                          char **userp, char **passwdp, char **optionsp)
+static CURLcode override_login(struct SessionHandle *data,
+                               struct connectdata *conn,
+                               char **userp, char **passwdp, char **optionsp)
 {
   if(data->set.str[STRING_USERNAME]) {
     free(*userp);
@@ -4838,6 +4838,7 @@ static int override_login(struct SessionHandle *data,
       conn->bits.user_passwd = TRUE; /* enable user+password */
     }
   }
+
   return CURLE_OK;
 }