summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1daf30)
raw | patch | inline | side by side (parent: b1daf30)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 12 Mar 2007 19:33:18 +0000 (15:33 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Mar 2007 06:40:18 +0000 (23:40 -0700) |
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>
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>
builtin-revert.c | patch | blob | history | |
cache.h | patch | blob | history | |
environment.c | patch | blob | history |
diff --git a/builtin-revert.c b/builtin-revert.c
index 652eece5ad71fbfc19c7132d9fe256c0b5218036..f3f3f5c6ee6fa666c3179145655ae7a968c27b3a 100644 (file)
--- a/builtin-revert.c
+++ b/builtin-revert.c
unsigned char head[20];
struct commit *base, *next;
int i;
- char *oneline, *encoding, *reencoded_message = NULL;
- const char *message;
+ char *oneline, *reencoded_message = NULL;
+ const char *message, *encoding;
git_config(git_default_config);
me = action == REVERT ? "revert" : "cherry-pick";
index f172d02a653475fcf715eb5605012abf50c5621b..4f1066744c186695374008c1d3edad6d6dcac939 100644 (file)
--- a/cache.h
+++ b/cache.h
extern char git_default_email[MAX_GITNAME];
extern char git_default_name[MAX_GITNAME];
-extern char *git_commit_encoding;
+extern const char *git_commit_encoding;
extern const char *git_log_output_encoding;
extern int copy_fd(int ifd, int ofd);
diff --git a/environment.c b/environment.c
index 0151ad07227d20a7f8d4a5c390d77b2aa85ef739..fff4a4da50d1054dd3989d40ec5310ea7258f97c 100644 (file)
--- a/environment.c
+++ b/environment.c
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;