HomeFreeBSD

bhyve: Fix some warnings in the snapshot code

Description

bhyve: Fix some warnings in the snapshot code

  • Qualify unexported symbols with "static".
  • Drop some unnecessary and incorrect casts.
  • Avoid arithmetic on void pointers.
  • Avoid signed/unsigned comparisons in loops which use nitems() as a bound.

No functional change intended.

MFC after: 1 week

Details

Provenance
markjAuthored on Oct 22 2022, 5:41 PM
Parents
rG63898728b544: bhyve: Avoid arithmetic on void pointers
Branches
Unknown
Tags
Unknown