summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-05-22 09:44:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-05-23 19:39:44 (GMT)
commit88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed (patch)
tree5bb6adf34ea3a774df7f1645bf9de485542ef028 /daemon.c
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d (diff)
downloadgit-88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed.zip
git-88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed.tar.gz
git-88d5a6f6cd1b63e1637027322cdfdbeefe38c3ed.tar.bz2
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>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/daemon.c b/daemon.c
index 13608c0..d514ba4 100644
--- a/daemon.c
+++ b/daemon.c
@@ -475,14 +475,6 @@ static void make_service_overridable(const char *name, int ena)
die("No such service %s", name);
}
-static char *xstrdup_tolower(const char *str)
-{
- char *p, *dup = xstrdup(str);
- for (p = dup; *p; p++)
- *p = tolower(*p);
- return dup;
-}
-
static void parse_host_and_port(char *hostport, char **host,
char **port)
{