connect.c: remove unused parameters from tcp_connect and proxy_connect
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jun 28, 2006 at 03:50 UTC
c78963d280adc11646b95156e3d9271d0404ce7f
1 file changed
+4
-6
connect.c
+4
-6
@@ -451,8 +451,7 @@ static int git_tcp_connect_sock(char *host)
451
#endif /* NO_IPV6 */
452
453
454
-static void git_tcp_connect(int fd[2],
455
- const char *prog, char *host, char *path)
454
+static void git_tcp_connect(int fd[2], char *host)
455
{
456
int sockfd = git_tcp_connect_sock(host);
457
@@ -522,8 +521,7 @@ static int git_use_proxy(const char *host)
521
return (git_proxy_command && *git_proxy_command);
522
}
523
525
-static void git_proxy_connect(int fd[2],
526
- const char *prog, char *host, char *path)
524
+static void git_proxy_connect(int fd[2], char *host)
525
{
526
const char *port = STR(DEFAULT_GIT_PORT);
527
char *colon, *end;
@@ -643,9 +641,9 @@ int git_connect(int fd[2], char *url, const char *prog)
641
*/
642
char *target_host = strdup(host);
643
if (git_use_proxy(host))
646
- git_proxy_connect(fd, prog, host, path);
644
+ git_proxy_connect(fd, host);
645
else
648
- git_tcp_connect(fd, prog, host, path);
646
+ git_tcp_connect(fd, host);
647
/*
648
* Separate original protocol components prog and path
649
* from extended components with a NUL byte.