refs: use strncmp() instead of strlen() and memcmp()
commitc971ddfdcd319fb5cad95aa7047c54ebe6a22d1a
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Wed, 16 Jan 2013 01:08:16 +0000 (16 02:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jan 2013 17:48:36 +0000 (16 09:48 -0800)
tree0a0719639eac07c63af594fb9bc138a2e25a7999
parente1980c9d23c22ecfbcadbe91d304ba778b84b457
refs: use strncmp() instead of strlen() and memcmp()

Simplify ref_entry_cmp_sslice() by using strncmp() to compare the
length-limited key and a NUL-terminated entry.  While we're at it,
retain the const attribute of the input pointers.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c