From: Serge Hallyn Date: Thu, 26 Sep 2013 13:14:50 +0000 (-0500) Subject: drop now-useless have_tpath bool X-Git-Tag: lxc-1.0.0.alpha2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=566981770e840b9043f57dac15958a723413e688;p=thirdparty%2Flxc.git drop now-useless have_tpath bool (Which will also break failure-to-build in the !HAVE_LIBGNUTLS case) Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index d3f5b0d0b..1b3f2f5fc 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -881,7 +881,6 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[]) int i; unsigned char md_value[SHA_DIGEST_LENGTH]; char *tpath; - bool have_tpath = false; #endif process_lock(); @@ -916,7 +915,6 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[]) goto out_free_contents; } - have_tpath = true; ret = sha1sum_file(tpath, md_value); if (ret < 0) { ERROR("Error getting sha1sum of %s", tpath); @@ -944,12 +942,10 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[]) fprintf(f, "\n"); } #if HAVE_LIBGNUTLS - if (have_tpath) { - fprintf(f, "# Template script checksum (SHA-1): "); - for (i=0; i