Code cleanup

This commit is contained in:
Pierre Pronchery 2011-10-17 15:02:22 +00:00
parent a7b52c20a7
commit f3547765f8

View File

@ -98,12 +98,9 @@ static int _appclient_hostname(int verbose, char const * hostname,
if((buf = malloc(len)) == NULL)
return error_set_code(1, "%s", strerror(errno));
snprintf(buf, len, "%s%s", prefix, service);
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, buf);
#endif
env = getenv(buf);
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, env);
fprintf(stderr, "DEBUG: %s() \"%s\"=\"%s\"\n", __func__, buf, env);
#endif
if(hostname == NULL)
{