]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connect.c
Make some strings const
[thirdparty/git.git] / connect.c
index 66e78a29054a121c92beca3d997105f0137c170d..f9d92024a600a26f6039acf23ebfe47b0d23958c 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -330,7 +330,7 @@ static int git_tcp_connect_sock(char *host)
 {
        int sockfd = -1;
        char *colon, *end;
-       char *port = STR(DEFAULT_GIT_PORT);
+       const char *port = STR(DEFAULT_GIT_PORT);
        struct addrinfo hints, *ai0, *ai;
        int gai;
 
@@ -525,7 +525,7 @@ static int git_use_proxy(const char *host)
 static void git_proxy_connect(int fd[2],
                              const char *prog, char *host, char *path)
 {
-       char *port = STR(DEFAULT_GIT_PORT);
+       const char *port = STR(DEFAULT_GIT_PORT);
        char *colon, *end;
        int pipefd[2][2];
        pid_t pid;