drop casts from users EMPTY_TREE_SHA1_BIN
This macro already evaluates to the correct type, as it casts the string literal to "unsigned char *" itself (and callers who want the literal can use the _LITERAL form). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
498a04af14
commit
cba595bd21
@ -164,7 +164,7 @@ static void write_message(struct strbuf *msgbuf, const char *filename)
|
||||
|
||||
static struct tree *empty_tree(void)
|
||||
{
|
||||
return lookup_tree((const unsigned char *)EMPTY_TREE_SHA1_BIN);
|
||||
return lookup_tree(EMPTY_TREE_SHA1_BIN);
|
||||
}
|
||||
|
||||
static int error_dirty_index(struct replay_opts *opts)
|
||||
|
||||
Reference in New Issue
Block a user