diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-21 23:44:35 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-21 23:44:35 -0800 |
commit | c7d77dab9333112cfce8cce51e56005b5e8b4076 (patch) | |
tree | 5bc7f67c535dbbbb9340285c82226a8dd6e4afec /var.c | |
parent | 9ce392f4826558357af2b2c7eb6ad876fdb53a91 (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }, |