[Libguestfs] [libnbd PATCH v2 0/5] Avoid deadlock with in-flight commands
Richard W.M. Jones
rjones at redhat.com
Wed May 22 07:03:54 UTC 2019
There are a couple of unused variables in the new program. The
attached patch fixes it. ./configure --enable-gcc-warnings should
catch these automatically. I need to document this ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
-------------- next part --------------
diff --git a/examples/batched-read-write.c b/examples/batched-read-write.c
index 888f4b6..79cb5ab 100644
--- a/examples/batched-read-write.c
+++ b/examples/batched-read-write.c
@@ -47,7 +47,7 @@ try_deadlock (void *arg)
{
struct pollfd fds[1];
struct nbd_connection *conn;
- size_t i, j;
+ size_t j;
int64_t handles[2];
size_t in_flight; /* counts number of requests in flight */
int dir, r;
@@ -130,7 +130,6 @@ try_deadlock (void *arg)
int
main (int argc, char *argv[])
{
- int err;
int64_t exportsize;
if (argc < 2 || argc > 3) {
More information about the Libguestfs
mailing list