diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-28 14:06:14 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-28 14:06:14 +0100 |
commit | a92315b25f5332e251a5d3bc19d46e9025a461ea (patch) | |
tree | 744b8d2966cb7317365e87e4f45d57c3fbf61f98 | |
parent | 78deb3ce82f7db6cedb7d3ce39998a8747cf6346 (diff) | |
download | paccache-a92315b25f5332e251a5d3bc19d46e9025a461ea.tar.gz paccache-a92315b25f5332e251a5d3bc19d46e9025a461ea.tar.zst |
rename function
-rw-r--r-- | pacredir.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |