diff options
author | Jeff King <peff@peff.net> | 2014-05-22 05:44:09 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-23 12:39:44 -0700 |
commit | 88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed (patch) | |
tree | 5bb6adf34ea3a774df7f1645bf9de485542ef028 /strbuf.h | |
parent | 7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d (diff) | |
download | git-88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed.tar.gz |
daemon/config: factor out duplicate xstrdup_tolowerjk/daemon-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>
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -177,4 +177,6 @@ extern int printf_ln(const char *fmt, ...); __attribute__((format (printf,2,3))) extern int fprintf_ln(FILE *fp, const char *fmt, ...); +char *xstrdup_tolower(const char *); + #endif /* STRBUF_H */ |