diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-03-12 20:33:18 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-13 07:40:18 +0100 |
commit | 1a8f27413bfe438ce8f8aba56aa48f980f6144d1 (patch) | |
tree | a52d78c5a16873d90044a970f9e57eba2c9e9442 /environment.c | |
parent | Replace fork_with_pipe in bundle with run_command (diff) | |
download | git-1a8f27413bfe438ce8f8aba56aa48f980f6144d1.tar.xz git-1a8f27413bfe438ce8f8aba56aa48f980f6144d1.zip |
Correct new compiler warnings in builtin-revert
The new builtin-revert code introduces a few new compiler errors
when I'm building with my stricter set of checks enabled in CFLAGS.
These all just stem from trying to store a constant string into
a non-const char*. Simple fix, make the variables const char*.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'environment.c')
-rw-r--r-- | environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c index 0151ad0722..fff4a4da50 100644 --- a/environment.c +++ b/environment.c @@ -20,7 +20,7 @@ int is_bare_repository_cfg = -1; /* unspecified */ int log_all_ref_updates = -1; /* unspecified */ int warn_ambiguous_refs = 1; int repository_format_version; -char *git_commit_encoding; +const char *git_commit_encoding; const char *git_log_output_encoding; int shared_repository = PERM_UMASK; const char *apply_default_whitespace; |