]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Address some warnings in bhyverun.c
authorMark Johnston <markj@FreeBSD.org>
Thu, 8 Sep 2022 23:08:10 +0000 (19:08 -0400)
committerMark Johnston <markj@FreeBSD.org>
Thu, 29 Sep 2022 16:36:44 +0000 (12:36 -0400)
commit65b8109b4e07ea1fe105ab10539d5baa0a613a14
tree55584a734b7c83debdb66f56827436dafcf45826
parent6cb261620da3a9888f7a09244a8efe691c12ae47
bhyve: Address some warnings in bhyverun.c

- Add const and __unused qualifiers where appropriate.
- Localize some global variables.
- Consistently spell vmexit state as "vme" in vmexit handlers, to avoid
  shadowing the global vm_exit state array.
- Similarly, avoid shadowing "optarg".

MFC after: 2 weeks
usr.sbin/bhyve/bhyverun.c