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:
Timo Hirvonen
2006-06-28 12:04:39 +03:00
committed by Junio C Hamano
parent 66eb64cba6
commit 554fe20d80
11 changed files with 16 additions and 15 deletions

View File

@ -329,7 +329,7 @@ int cmd_rev_parse(int argc, const char **argv, char **envp)
dotdot = strstr(arg, "..");
if (dotdot) {
unsigned char end[20];
char *next = dotdot + 2;
const char *next = dotdot + 2;
const char *this = arg;
*dotdot = 0;
if (!*next)