summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e863d6)
raw | patch | inline | side by side (parent: 6e863d6)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Oct 2007 04:12:12 +0000 (00:12 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Oct 2007 05:43:27 +0000 (01:43 -0400) |
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-fetch--tool.c | patch | blob | history | |
builtin-mailinfo.c | patch | blob | history | |
builtin-reset.c | patch | blob | history | |
match-trees.c | patch | blob | history |
diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c
index e26817de219588e680340be8c0faf6b65417c465..6a78517958567e9dee4bfb00236caf5c3d1c3d67 100644 (file)
--- a/builtin-fetch--tool.c
+++ b/builtin-fetch--tool.c
unsigned char *oldval)
{
char msg[1024];
- char *rla = getenv("GIT_REFLOG_ACTION");
+ const char *rla = getenv("GIT_REFLOG_ACTION");
if (!rla)
rla = "(reflog update)";
}
if (get_sha1(name, sha1_old)) {
- char *msg;
+ const char *msg;
just_store:
/* new ref */
if (!strncmp(name, "refs/tags/", 10))
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index d7cb11dc0d6339dbea51c89f3cd4966e8f6b4c3d..fb12248f825807b085f4e5ed761002c30925ead5 100644 (file)
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
}
static void decode_header(char *it, unsigned itsize);
-static char *header[MAX_HDR_PARSED] = {
+static const char *header[MAX_HDR_PARSED] = {
"From","Subject","Date",
};
diff --git a/builtin-reset.c b/builtin-reset.c
index 99d5c082a629c870e268160635c8e900155f164a..e1dc31e0eb80ddc2d1b82f12eda31401b9f40ebc 100644 (file)
--- a/builtin-reset.c
+++ b/builtin-reset.c
}
enum reset_type { MIXED, SOFT, HARD, NONE };
-static char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
+static const char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
int cmd_reset(int argc, const char **argv, const char *prefix)
{
diff --git a/match-trees.c b/match-trees.c
index d7e29c4d1d3e44c85e0eeb28040e8ea945090594..0fd6df7d6ed839eaed536bc332312c2688a6bbad 100644 (file)
--- a/match-trees.c
+++ b/match-trees.c
const unsigned char *hash2,
int *best_score,
char **best_match,
- char *base,
+ const char *base,
int recurse_limit)
{
struct tree_desc one;