daemon/config: factor out duplicate xstrdup_tolower
commit88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed
authorJeff King <peff@peff.net>
Thu, 22 May 2014 09:44:09 +0000 (22 05:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2014 19:39:44 +0000 (23 12:39 -0700)
tree5bb6adf34ea3a774df7f1645bf9de485542ef028
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d
daemon/config: factor out duplicate xstrdup_tolower

We have two implementations of the same function; let's drop
that to one. We take the name from daemon.c, but the
implementation (which is just slightly more efficient) from
the config code.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
daemon.c
strbuf.c
strbuf.h