mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
tools/proxy: use switch-case for monitor enum
This commit is contained in:
parent
728b465826
commit
eee932bab8
1 changed files with 13 additions and 2 deletions
|
@ -1043,7 +1043,18 @@ int main(int argc, char **argv)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (monitor != UHYVE)
|
||||
|
||||
switch(monitor) {
|
||||
case UHYVE:
|
||||
return uhyve_loop();
|
||||
|
||||
case BAREMETAL:
|
||||
case QEMU:
|
||||
return socket_loop(argc, argv);
|
||||
return uhyve_loop();
|
||||
|
||||
default:
|
||||
perror("Unknown monitor");
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue