HomeFreeBSD

netmap: Fix compiler warnings in tools

Description

netmap: Fix compiler warnings in tools

  • Remove write-only variables, or hide them in cases where their use is conditional or commented out.
  • Check for errors from cmd_apply() in nmreplay.
  • Use ANSI C definitions.

Reviewed by: vmaffione
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38752

(cherry picked from commit 538c66eabda55afccebc25fb66548115e5ed8151)

Details

Provenance
markjAuthored on Feb 27 2023, 6:41 PM
Reviewer
vmaffione
Differential Revision
D38752: netmap: Fix compiler warnings in tools
Parents
rG25766cfd83b2: bhyvectl: Address compiler warnings and bump WARNS
Branches
Unknown
Tags
Unknown