link_alt_odb_entries(): take (char *, len) rather than two pointers
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 5 Nov 2012 08:41:23 +0000 (09:41 +0100)
committerJeff King <peff@peff.net>
Thu, 8 Nov 2012 17:06:53 +0000 (12:06 -0500)
commitc595016402620ba93e79064f6e3bc9e09981e680
tree292d956d86c42cf987cf5fffaa8b17cc53994f0f
parent6eac50d8274ef0acbbaec4f79e2876405ba8dcee
link_alt_odb_entries(): take (char *, len) rather than two pointers

Change link_alt_odb_entries() to take the length of the "alt"
parameter rather than a pointer to the end of the "alt" string.  This
is the more common calling convention and simplifies the code a tiny
bit.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
sha1_file.c