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;
|
||||
case 'P':
|
||||
partition = strtol(optarg, &end, 0);
|
||||
if (*end)
|
||||
if (*end) {
|
||||
errx(EXIT_FAILURE, "Invalid partition `%s'", optarg);
|
||||
if (partition < 1 || partition > 8)
|
||||
}
|
||||
if (partition < 1 || partition > 8) {
|
||||
errx(EXIT_FAILURE, "Invalid partition %d", partition);
|
||||
}
|
||||
break;
|
||||
case 'k':
|
||||
sockpath = optarg;
|
||||
if (sockpath[0] != '/')
|
||||
if (sockpath[0] != '/') {
|
||||
errx(EXIT_FAILURE, "socket path must be absolute\n");
|
||||
}
|
||||
break;
|
||||
case 'd':
|
||||
disconnect = true;
|
||||
|
|
Loading…
Reference in New Issue