attr.c: drop hashmap_cmp_fn cast
commit201c14e375bfc0b81c6d7e12d1bae3ba22ce8038
authorStefan Beller <sbeller@google.com>
Sat, 1 Jul 2017 00:28:29 +0000 (30 17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jul 2017 20:53:12 +0000 (5 13:53 -0700)
tree73c591c7f1435838255b5018538d8da0ce9d91ed
parent1ecbf31d0298a1ed952623108e23234d5cf37086
attr.c: drop hashmap_cmp_fn cast

MAke the code more readable and less error prone by avoiding the cast
of the compare function pointer in hashmap_init, but instead have the
correctly named void pointers to casted to the specific data structure.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c