Make some strings const
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
66eb64cba6
commit
554fe20d80
4
daemon.c
4
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)
|
||||
|
Reference in New Issue
Block a user