diff --git a/lib/connect.h b/lib/connect.h
index 8d36365e549602da33f8160ee66c4242c4060fab..f8c10db0607e287ed7fb6245c6a42bf58eed5b45 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -28,7 +28,7 @@ int Curl_nonblock(int socket,    /* operate on this */
 
 CURLcode Curl_connecthost(struct connectdata *conn,
                           Curl_addrinfo *host, /* connect to this */
-                          long port,      /* connect to this port number */
+                          int port,       /* connect to this port number */
                           int *sockconn,  /* not set if error is returned */
                           Curl_ipconnect **addr /* the one we used */
                           ); /*  index we used */