diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-10-21 00:12:12 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-21 01:43:27 -0400 |
commit | 538dfe7397db62e5c7e8861c272380140969a8b8 (patch) | |
tree | 70040b3240ed347f8252b8e59aff44ac82e66642 /builtin-fetch--tool.c | |
parent | 6e863d6d129a1b6a13c66d0bb03f3d43db6c51fe (diff) | |
download | git-538dfe7397db62e5c7e8861c272380140969a8b8.tar.gz |
Improved const correctness for strings
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'builtin-fetch--tool.c')
-rw-r--r-- | builtin-fetch--tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c index e26817de21..6a78517958 100644 --- a/builtin-fetch--tool.c +++ b/builtin-fetch--tool.c @@ -25,7 +25,7 @@ static int update_ref_env(const char *action, unsigned char *oldval) { char msg[1024]; - char *rla = getenv("GIT_REFLOG_ACTION"); + const char *rla = getenv("GIT_REFLOG_ACTION"); if (!rla) rla = "(reflog update)"; @@ -61,7 +61,7 @@ static int update_local_ref(const char *name, } if (get_sha1(name, sha1_old)) { - char *msg; + const char *msg; just_store: /* new ref */ if (!strncmp(name, "refs/tags/", 10)) |