summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-20 01:55:07 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-20 22:03:15 -0800
commit1968d77dd632a9a9e5c6f5681649e5e65ed13088 (patch)
tree3321cc876345e8f134b6e1b2ceb556d0061ff2c5 /revision.c
parent599065a3bb94ae9f48e3808b8fafc8443017af28 (diff)
downloadgit-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 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index abab3b9d01..622afe3aa6 100644
--- a/revision.c
+++ b/revision.c
@@ -832,7 +832,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
revs->max_count = atoi(argv[++i]);
continue;
}
- if (!strncmp(arg,"-n",2)) {
+ if (!prefixcmp(arg, "-n")) {
revs->max_count = atoi(arg + 2);
continue;
}