HomeFreeBSD

libvmmapi: Fix warnings and stop overridding WARNS

Description

libvmmapi: Fix warnings and stop overridding WARNS

  • Avoid shadowing the global optarg.
  • Sprinkle __unused.
  • Cast nitems() to int.
  • Fix sign in vm_copy_setup().

Reviewed by: grehan
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 45cd18ec73dcd262612898bf1a263cacde17d348)

Details

Provenance
markjAuthored on Jul 26 2021, 8:40 PM
Parents
rG156b889469d2: mrsas(4): Report more correct maximum I/O size.
Branches
Unknown
Tags
Unknown