Skip to content

Commit c78963d

Browse files
author
Junio C Hamano
committed
connect.c: remove unused parameters from tcp_connect and proxy_connect
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 554fe20 commit c78963d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

connect.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@ static int git_tcp_connect_sock(char *host)
451451
#endif /* NO_IPV6 */
452452

453453

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)
456455
{
457456
int sockfd = git_tcp_connect_sock(host);
458457

@@ -522,8 +521,7 @@ static int git_use_proxy(const char *host)
522521
return (git_proxy_command && *git_proxy_command);
523522
}
524523

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)
527525
{
528526
const char *port = STR(DEFAULT_GIT_PORT);
529527
char *colon, *end;
@@ -643,9 +641,9 @@ int git_connect(int fd[2], char *url, const char *prog)
643641
*/
644642
char *target_host = strdup(host);
645643
if (git_use_proxy(host))
646-
git_proxy_connect(fd, prog, host, path);
644+
git_proxy_connect(fd, host);
647645
else
648-
git_tcp_connect(fd, prog, host, path);
646+
git_tcp_connect(fd, host);
649647
/*
650648
* Separate original protocol components prog and path
651649
* from extended components with a NUL byte.

0 commit comments

Comments
 (0)