mirror of https://github.com/xemu-project/xemu.git
qemu-nbd: fix indentation and coding style
Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Benoit Canet <benoit.canet@nodalink.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
b3838a4088
commit
713cc671f1
|
@ -546,15 +546,18 @@ int main(int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
case 'P':
|
case 'P':
|
||||||
partition = strtol(optarg, &end, 0);
|
partition = strtol(optarg, &end, 0);
|
||||||
if (*end)
|
if (*end) {
|
||||||
errx(EXIT_FAILURE, "Invalid partition `%s'", optarg);
|
errx(EXIT_FAILURE, "Invalid partition `%s'", optarg);
|
||||||
if (partition < 1 || partition > 8)
|
}
|
||||||
|
if (partition < 1 || partition > 8) {
|
||||||
errx(EXIT_FAILURE, "Invalid partition %d", partition);
|
errx(EXIT_FAILURE, "Invalid partition %d", partition);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
sockpath = optarg;
|
sockpath = optarg;
|
||||||
if (sockpath[0] != '/')
|
if (sockpath[0] != '/') {
|
||||||
errx(EXIT_FAILURE, "socket path must be absolute\n");
|
errx(EXIT_FAILURE, "socket path must be absolute\n");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
disconnect = true;
|
disconnect = true;
|
||||||
|
|
Loading…
Reference in New Issue