mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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
1 changed files with 39 additions and 36 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue