From: Lennart Poettering Date: Sun, 1 Nov 2015 20:59:17 +0000 (+0100) Subject: journal-remote: remove unused variable warning when building without GNUTLS. X-Git-Tag: v228~124^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1745%2Fhead;p=thirdparty%2Fsystemd.git journal-remote: remove unused variable warning when building without GNUTLS. --- diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 20be5420963..dc69bb8679d 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -1256,7 +1256,6 @@ static int parse_argv(int argc, char *argv[]) { }; int c, r; - const char *p; bool type_a, type_b; assert(argc >= 0); @@ -1417,7 +1416,7 @@ static int parse_argv(int argc, char *argv[]) { case ARG_GNUTLS_LOG: { #ifdef HAVE_GNUTLS - p = optarg; + const char* p = optarg; for (;;) { _cleanup_free_ char *word = NULL;