Code cleanup
This commit is contained in:
parent
a7b52c20a7
commit
f3547765f8
|
@ -98,12 +98,9 @@ static int _appclient_hostname(int verbose, char const * hostname,
|
||||||
if((buf = malloc(len)) == NULL)
|
if((buf = malloc(len)) == NULL)
|
||||||
return error_set_code(1, "%s", strerror(errno));
|
return error_set_code(1, "%s", strerror(errno));
|
||||||
snprintf(buf, len, "%s%s", prefix, service);
|
snprintf(buf, len, "%s%s", prefix, service);
|
||||||
#ifdef DEBUG
|
|
||||||
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, buf);
|
|
||||||
#endif
|
|
||||||
env = getenv(buf);
|
env = getenv(buf);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, env);
|
fprintf(stderr, "DEBUG: %s() \"%s\"=\"%s\"\n", __func__, buf, env);
|
||||||
#endif
|
#endif
|
||||||
if(hostname == NULL)
|
if(hostname == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user