summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-20 09:55:07 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-21 06:03:15 (GMT)
commit1968d77dd632a9a9e5c6f5681649e5e65ed13088 (patch)
tree3321cc876345e8f134b6e1b2ceb556d0061ff2c5 /wt-status.c
parent599065a3bb94ae9f48e3808b8fafc8443017af28 (diff)
downloadgit-1968d77dd632a9a9e5c6f5681649e5e65ed13088.zip
git-1968d77dd632a9a9e5c6f5681649e5e65ed13088.tar.gz
git-1968d77dd632a9a9e5c6f5681649e5e65ed13088.tar.bz2
prefixcmp(): fix-up leftover strncmp().
There were instances of strncmp() that were formatted improperly (e.g. whitespace around parameter before closing parenthesis) that caused the earlier mechanical conversion step to miss them. This step cleans them up. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index d17a6ba..035e546 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -344,7 +344,7 @@ int git_status_config(const char *k, const char *v)
wt_status_use_color = git_config_colorbool(k, v);
return 0;
}
- if (!prefixcmp(k, "status.color.") || !strncmp(k, "color.status.", 13)) {
+ if (!prefixcmp(k, "status.color.") || !prefixcmp(k, "color.status.")) {
int slot = parse_status_slot(k, 13);
color_parse(v, k, wt_status_colors[slot]);
}