From 88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 22 May 2014 05:44:09 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- strbuf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'strbuf.h') diff --git a/strbuf.h b/strbuf.h index 73e80cea69..7bd36216ff 100644 --- a/strbuf.h +++ b/strbuf.h @@ -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 */ -- cgit v1.2.3