daemon: use strbuf for hostname info
commit7a646cec5bbcebad31a6e99f0279782b322ecd36
authorRené Scharfe <l.s.r@web.de>
Sat, 7 Mar 2015 10:50:29 +0000 (7 11:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2015 01:17:18 +0000 (9 18:17 -0700)
tree6fda731d4710538b2d5090a80a61d6eb37aa3fa8
parent4c3dbbf7225c45ab0e04953090d0ece4a15e83a2
daemon: use strbuf for hostname info

Convert hostname, canon_hostname, ip_address and tcp_port to strbuf.
This allows to get rid of the helpers strbuf_addstr_or_null() and STRARG
because a strbuf always represents a valid (initially empty) string.

sanitize_client() is not needed anymore and sanitize_client_strbuf()
takes its place and name.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c