1
0
Fork 0
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:
daniel-k 2017-03-01 18:49:23 +01:00
parent 728b465826
commit eee932bab8

View file

@ -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;
}