]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer: don't define certain variables if !HAVE_GNUTLS
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 16 Jul 2013 13:11:56 +0000 (08:11 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 16 Jul 2013 13:16:07 +0000 (08:16 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 0c13e06823331c0101ff5a4bad639cbb86288ed8..c5aae99dc2b10bb67a1c6f4484d104e192e194dc 100644 (file)
@@ -874,10 +874,12 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[])
 {
        size_t flen;
        char *contents, *tpath;
-       int i, ret;
        FILE *f;
+#if HAVE_LIBGNUTLS
+       int i, ret;
        unsigned char md_value[SHA_DIGEST_LENGTH];
        bool have_tpath = false;
+#endif
 
        if ((f = fopen(path, "r")) == NULL) {
                SYSERROR("Opening old config");