summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2006-06-28 12:04:39 +0300
committerJunio C Hamano <junkio@cox.net>2006-06-28 03:24:37 -0700
commit554fe20d805693d962bd41647c5dc075cf7f5261 (patch)
tree09cba2467ab73d87d6567ee472b74cc27632ad6e /connect.c
parent66eb64cba64a26dbf2b1d4e319d6514696154fee (diff)
downloadgit-554fe20d805693d962bd41647c5dc075cf7f5261.tar.gz
Make some strings const
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/connect.c b/connect.c
index 66e78a2905..f9d92024a6 100644
--- 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;