diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-20 01:55:07 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-20 22:03:15 -0800 |
commit | 1968d77dd632a9a9e5c6f5681649e5e65ed13088 (patch) | |
tree | 3321cc876345e8f134b6e1b2ceb556d0061ff2c5 /diff.c | |
parent | 599065a3bb94ae9f48e3808b8fafc8443017af28 (diff) | |
download | git-1968d77dd632a9a9e5c6f5681649e5e65ed13088.tar.gz |
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 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ int git_diff_ui_config(const char *var, const char *value) diff_detect_rename_default = DIFF_DETECT_RENAME; return 0; } - if (!prefixcmp(var, "diff.color.") || !strncmp(var, "color.diff.", 11)) { + if (!prefixcmp(var, "diff.color.") || !prefixcmp(var, "color.diff.")) { int slot = parse_diff_color_slot(var, 11); color_parse(value, var, diff_colors[slot]); return 0; |