From 566981770e840b9043f57dac15958a723413e688 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 26 Sep 2013 08:14:50 -0500 Subject: [PATCH] drop now-useless have_tpath bool (Which will also break failure-to-build in the !HAVE_LIBGNUTLS case) Signed-off-by: Serge Hallyn --- src/lxc/lxccontainer.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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