From c7d77dab9333112cfce8cce51e56005b5e8b4076 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 21 Nov 2005 23:44:35 -0800 Subject: git-var: constness and globalness cleanup. var.c::git_var read function did not have to return writable strings; make it and the functions it points at return const char * instead. ident.c::get_ident() did not need to be global, so make it static. Signed-off-by: Junio C Hamano --- var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var.c') diff --git a/var.c b/var.c index 51cf86a58..98044594c 100644 --- a/var.c +++ b/var.c @@ -12,7 +12,7 @@ static const char var_usage[] = "git-var [-l | ]"; struct git_var { const char *name; - char *(*read)(void); + const char *(*read)(void); }; static struct git_var git_vars[] = { { "GIT_COMMITTER_IDENT", git_committer_info }, -- cgit v1.2.1