summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-28 14:06:14 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-28 14:06:14 +0100
commita92315b25f5332e251a5d3bc19d46e9025a461ea (patch)
tree744b8d2966cb7317365e87e4f45d57c3fbf61f98
parent78deb3ce82f7db6cedb7d3ce39998a8747cf6346 (diff)
downloadpacredir-a92315b25f5332e251a5d3bc19d46e9025a461ea.tar.gz
pacredir-a92315b25f5332e251a5d3bc19d46e9025a461ea.tar.zst
rename function
-rw-r--r--pacredir.c6
1 files 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) {