OSDN Git Service

nbd-client: Use correct macro parenthesization
authorEric Blake <eblake@redhat.com>
Mon, 18 Sep 2017 21:46:49 +0000 (16:46 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 26 Sep 2017 06:11:22 +0000 (09:11 +0300)
commitaf5eeb2c3b691e13b55724e4b6d831cb054ffebe
tree1958c47c5c4ea7f42f8be2c9836ae6cbdfa07fdb
parente837acfda1b02f49592803d1b82e8809b38d922b
nbd-client: Use correct macro parenthesization

If 'bs' is a complex expression, we were only casting the front half
rather than the full expression.  Luckily, none of the callers were
passing bad arguments, but it's better to be robust up front.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/nbd-client.c