summaryrefslogtreecommitdiff
path: root/var.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-21 23:44:35 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-21 23:44:35 -0800
commitc7d77dab9333112cfce8cce51e56005b5e8b4076 (patch)
tree5bc7f67c535dbbbb9340285c82226a8dd6e4afec /var.c
parent9ce392f4826558357af2b2c7eb6ad876fdb53a91 (diff)
downloadgit-c7d77dab9333112cfce8cce51e56005b5e8b4076.tar.gz
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 <junkio@cox.net>
Diffstat (limited to 'var.c')
-rw-r--r--var.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/var.c b/var.c
index 51cf86a584..98044594c3 100644
--- a/var.c
+++ b/var.c
@@ -12,7 +12,7 @@ static const char var_usage[] = "git-var [-l | <variable>]";
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 },