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
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31306

Details

Provenance
markjAuthored on Jul 26 2021, 8:40 PM
Reviewer
grehan
Differential Revision
D31306: libvmmapi: Fix warnings and stop overridding WARNS
Parents
R10:ba2182520273: rip: Add missing minimum length validation in rip_output()
Branches
Unknown
Tags
Unknown