vcs-svn: use constcmp instead of prefixcmp
commitd8d8708bd6a56818ee3a85007e36a8ff201f9512
authorDavid Barr <davidbarr@google.com>
Thu, 31 May 2012 14:41:27 +0000 (1 00:41 +1000)
committerJonathan Nieder <jrnieder@gmail.com>
Fri, 6 Jul 2012 04:26:52 +0000 (5 23:26 -0500)
treefe59fee35148e9ff28e3d6f3eab6d948aacce31e
parent4a1613194af218afb99be0e14af449e86852d06e
vcs-svn: use constcmp instead of prefixcmp

Since the length of t is already known, we can simplify a little by
using memcmp() instead of strncmp() to carry out a prefix comparison.
All nearby code already does this.

Noticed in the standalone svn-dump-fast-export project which has not
needed to implement prefixcmp() yet.

Signed-off-by: David Barr <davidbarr@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
vcs-svn/svndump.c