diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-20 12:55:07 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-21 09:03:15 +0300 |
commit | 1968d77dd632a9a9e5c6f5681649e5e65ed13088 (patch) | |
tree | 3321cc876345e8f134b6e1b2ceb556d0061ff2c5 /builtin-rev-parse.c | |
parent | 599065a3bb94ae9f48e3808b8fafc8443017af28 (diff) |
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 'builtin-rev-parse.c')
-rw-r--r-- | builtin-rev-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-rev-parse.c b/builtin-rev-parse.c index a1c34111218..37addb25faf 100644 --- a/builtin-rev-parse.c +++ b/builtin-rev-parse.c @@ -233,7 +233,7 @@ int cmd_rev_parse(int argc, const char **argv, const char *prefix) } continue; } - if (!strncmp(arg,"-n",2)) { + if (!prefixcmp(arg, "-n")) { if ((filter & DO_FLAGS) && (filter & DO_REVS)) show(arg); continue; |