Update HAVE_GNUTLS checks in nbd-tester-client, too
authorWouter Verhelst <w@uter.be>
Wed, 9 Nov 2016 23:09:12 +0000 (00:09 +0100)
committerWouter Verhelst <w@uter.be>
Wed, 9 Nov 2016 23:09:12 +0000 (00:09 +0100)
Signed-off-by: Wouter Verhelst <w@uter.be>
tests/run/nbd-tester-client.c

index a3f5e16..a4c3112 100644 (file)
@@ -42,7 +42,7 @@
 #define MY_NAME "nbd-tester-client"
 #include "cliserv.h"
 
-#ifdef HAVE_GNUTLS
+#if HAVE_GNUTLS
 #include "crypto-gnutls.h"
 #endif
 
@@ -428,7 +428,7 @@ int setup_connection_common(int sock, char *name, CONNECTION_TYPE ctype,
                }
                goto end;
        }
-#ifdef HAVE_GNUTLS
+#if HAVE_GNUTLS
        /* TLS */
        if (keyfile) {
                int plainfd[2]; // [0] is used by the proxy, [1] is used by NBD
@@ -1722,7 +1722,7 @@ int main(int argc, char **argv)
        int testflags = 0;
        testfunc test = throughput_test;
 
-#ifdef HAVE_GNUTLS
+#if HAVE_GNUTLS
        tlssession_init();
 #endif
 
@@ -1781,7 +1781,7 @@ int main(int argc, char **argv)
                        test = handshake_test;
                        testflags |= TEST_HANDSHAKE;
                        break;
-#ifdef HAVE_GNUTLS
+#if HAVE_GNUTLS
                case 'C':
                        certfile=g_strdup(optarg);
                        break;