X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=connect.c;h=7945e38ac1c99c09f7975ae99767bc9747ac3740;hb=e4d1afbcf2e39a997ae90befd629ee53e444c4c9;hp=0ce941ef444277957efdd8a359a568775e2b17a4;hpb=95ad2a65fbb9b7f26669fed9906fe9a1a531810b;p=git.git diff --git a/connect.c b/connect.c index 0ce941ef4..7945e38ac 100644 --- a/connect.c +++ b/connect.c @@ -464,7 +464,7 @@ static void git_proxy_connect(int fd[2], char *host) #define MAX_CMD_LEN 1024 -char *get_port(char *host) +static char *get_port(char *host) { char *end; char *p = strchr(host, ':'); @@ -513,7 +513,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig, signal(SIGCHLD, SIG_DFL); host = strstr(url, "://"); - if(host) { + if (host) { *host = '\0'; protocol = get_protocol(url); host += 3;