From f3547765f897b0dc9288354b55e7a741583d8f2d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 17 Oct 2011 15:02:22 +0000 Subject: [PATCH] Code cleanup --- tools/appclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/appclient.c b/tools/appclient.c index a8201fa..9fdd980 100644 --- a/tools/appclient.c +++ b/tools/appclient.c @@ -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) {