Refactor vm_instance to return error value directly.
authordv <dv@openbsd.org>
Wed, 5 May 2021 21:33:11 +0000 (21:33 +0000)
committerdv <dv@openbsd.org>
Wed, 5 May 2021 21:33:11 +0000 (21:33 +0000)
commit15e0465666f4b9e17d9a6eb5952ebd6540023150
treea6031991074ac8a37dc0653e52936ed33fc22576
parent2f4e7cfa05a8adca584e21130bef9f794aa4fec0
Refactor vm_instance to return error value directly.

vmd(8)'s vm_instance function set unsupported errno values. Change the
api to directly return an error (either errno or custom vmd error).

"go for it" -mlarkin@
usr.sbin/vmd/vmd.c