From 554fe20d805693d962bd41647c5dc075cf7f5261 Mon Sep 17 00:00:00 2001 From: Timo Hirvonen Date: Wed, 28 Jun 2006 12:04:39 +0300 Subject: Make some strings const Signed-off-by: Timo Hirvonen Signed-off-by: Junio C Hamano --- daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 1ba4d669da..e096bd7ef6 100644 --- a/daemon.c +++ b/daemon.c @@ -35,7 +35,7 @@ static char *base_path = NULL; * after ~user/. E.g. a request to git://host/~alice/frotz would * go to /home/alice/pub_git/frotz with --user-path=pub_git. */ -static char *user_path = NULL; +static const char *user_path = NULL; /* Timeout, and initial timeout */ static unsigned int timeout = 0; @@ -472,7 +472,7 @@ static void child_handler(int signo) children_reaped = reaped + 1; /* XXX: Custom logging, since we don't wanna getpid() */ if (verbose) { - char *dead = ""; + const char *dead = ""; if (!WIFEXITED(status) || WEXITSTATUS(status) > 0) dead = " (with error)"; if (log_syslog) -- cgit v1.2.3