client: fix pointer vs uint8_t comparison
authorJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 15:30:37 +0000 (09:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 15:30:37 +0000 (09:30 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index 4209945245ff5e7c3cf4ea77f4d175a8d8d4dc8f..779fb9d7f8d04f53bd56388d13f869d0760980e5 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1382,7 +1382,7 @@ static int fio_client_handle_iolog(struct fio_client *client,
        }
 
 out:
        }
 
 out:
-       if (pdu && pdu != cmd->payload)
+       if (pdu && pdu != (void *) cmd->payload)
                free(pdu);
 
        if (log_pathname)
                free(pdu);
 
        if (log_pathname)