summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-28 10:50:33 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-28 10:50:33 (GMT)
commitc78963d280adc11646b95156e3d9271d0404ce7f (patch)
tree8a7aef53bca9f1cc59612d04702d0340a0a0223a /connect.c
parent554fe20d805693d962bd41647c5dc075cf7f5261 (diff)
downloadgit-c78963d280adc11646b95156e3d9271d0404ce7f.zip
git-c78963d280adc11646b95156e3d9271d0404ce7f.tar.gz
git-c78963d280adc11646b95156e3d9271d0404ce7f.tar.bz2
connect.c: remove unused parameters from tcp_connect and proxy_connect
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/connect.c b/connect.c
index f9d9202..cb4656d 100644
--- a/connect.c
+++ b/connect.c
@@ -451,8 +451,7 @@ static int git_tcp_connect_sock(char *host)
#endif /* NO_IPV6 */
-static void git_tcp_connect(int fd[2],
- const char *prog, char *host, char *path)
+static void git_tcp_connect(int fd[2], char *host)
{
int sockfd = git_tcp_connect_sock(host);
@@ -522,8 +521,7 @@ static int git_use_proxy(const char *host)
return (git_proxy_command && *git_proxy_command);
}
-static void git_proxy_connect(int fd[2],
- const char *prog, char *host, char *path)
+static void git_proxy_connect(int fd[2], char *host)
{
const char *port = STR(DEFAULT_GIT_PORT);
char *colon, *end;
@@ -643,9 +641,9 @@ int git_connect(int fd[2], char *url, const char *prog)
*/
char *target_host = strdup(host);
if (git_use_proxy(host))
- git_proxy_connect(fd, prog, host, path);
+ git_proxy_connect(fd, host);
else
- git_tcp_connect(fd, prog, host, path);
+ git_tcp_connect(fd, host);
/*
* Separate original protocol components prog and path
* from extended components with a NUL byte.