projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a769774
)
Fix a few GCC warnings
author
Wouter Verhelst
<w@uter.be>
Fri, 16 Mar 2018 17:48:23 +0000
(18:48 +0100)
committer
Wouter Verhelst
<w@uter.be>
Fri, 16 Mar 2018 17:48:23 +0000
(18:48 +0100)
tests/run/nbd-tester-client.c
patch
|
blob
|
history
diff --git
a/tests/run/nbd-tester-client.c
b/tests/run/nbd-tester-client.c
index
ae50de9
..
eab57a1
100644
(file)
--- a/
tests/run/nbd-tester-client.c
+++ b/
tests/run/nbd-tester-client.c
@@
-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