vcs-svn: use constcmp instead of prefixcmp
commitd71a6768bc7e18df395fe75880968379c41e77ee
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)
tree570eaefe7db69f8ef49656daa4bd160c54aad979
parente7e9bd259adac9b4e345e36b9951c9adaddc8227
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>
svndump.c