From: Brandon Casey <drafnel@xxxxxxxxx> This is in preparation for merging mktag.c with builtin-tag.c and using verify_tag_buffer within the git-tag code path. Signed-off-by: Brandon Casey <drafnel@xxxxxxxxx> --- mktag.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mktag.c b/mktag.c index 352747b..6204001 100644 --- a/mktag.c +++ b/mktag.c @@ -39,7 +39,7 @@ static int verify_object(unsigned char *sha1, const char *expected_type) #define PD_FMT "%td" #endif -static int verify_tag(const char *buffer, size_t size) +static int verify_tag_buffer(const char *buffer, size_t size) { int typelen; char type[20]; @@ -171,7 +171,7 @@ int cmd_mktag(int argc, const char **argv, const char *prefix) /* Verify it for some basic sanity: it needs to start with "object <sha1>\ntype\ntagger " */ - if (verify_tag(buf.buf, buf.len) < 0) + if (verify_tag_buffer(buf.buf, buf.len) < 0) die("invalid tag signature file"); if (write_sha1_file(buf.buf, buf.len, tag_type, result_sha1) < 0) -- 1.5.5.67.g9a49 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html