From a92315b25f5332e251a5d3bc19d46e9025a461ea Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Oct 2013 14:06:14 +0100 Subject: rename function --- pacredir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pacredir.c b/pacredir.c index a1be38e..9a105fc 100644 --- a/pacredir.c +++ b/pacredir.c @@ -409,8 +409,8 @@ void sighup_callback(int signal) { } } -/*** get_localname ***/ -char * get_localname(const char * hostname, const char * domainname) { +/*** get_fqdn ***/ +char * get_fqdn(const char * hostname, const char * domainname) { char * name; name = malloc(strlen(hostname) + strlen(domainname) + 2 /* '.' and null char */); @@ -468,7 +468,7 @@ int main(int argc, char ** argv) { } /* get the local hostname used by avahi */ - localname = get_localname(avahi_client_get_host_name(client), avahi_client_get_domain_name(client)); + localname = get_fqdn(avahi_client_get_host_name(client), avahi_client_get_domain_name(client)); /* start http server */ if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, PORT, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END)) == NULL) { -- cgit v1.2.3-70-g09d2