- logger(mesh, MESHLINK_WARNING, "Catta host name collision, retrying with '%s'\n", hostnamestr);
- int result = catta_server_set_host_name(mesh->catta_server, hostnamestr);
+ logger(mesh, MESHLINK_WARNING, "Catta host name collision, retrying with '%s'\n", hostname);
+ int result = catta_server_set_host_name(mesh->catta_server, hostname);