Fix a few GCC warnings
authorWouter Verhelst <w@uter.be>
Fri, 16 Mar 2018 17:48:23 +0000 (18:48 +0100)
committerWouter Verhelst <w@uter.be>
Fri, 16 Mar 2018 17:48:23 +0000 (18:48 +0100)
tests/run/nbd-tester-client.c

index ae50de9..eab57a1 100644 (file)
@@ -820,9 +820,7 @@ int handshake_test(gchar * hostname, gchar * unixsock, int port, char *name,
                   int sock, char sock_is_open, char close_sock, int testflags)
 {
        int retval = -1;
-       int i = 0;
        int serverflags = 0;
-       char buf[256];
        u64 tmp64;
        uint32_t tmp32 = 0;
 
@@ -1639,7 +1637,7 @@ skipdequeue:
                        free(prc);
                }
 
-               if (do_print == NULL && !(printer++ % 5000)
+               if ((do_print == NULL && !(printer++ % 5000))
                    || !(readtransactionfile || txqueue.numitems
                         || inflight.numitems))
                        printf