]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: Fix compiler warnings in tools
authorMark Johnston <markj@FreeBSD.org>
Mon, 27 Feb 2023 18:41:58 +0000 (13:41 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 27 Feb 2023 18:41:58 +0000 (13:41 -0500)
commit538c66eabda55afccebc25fb66548115e5ed8151
treec323fd53a205ca3094690750ee1e07e2182df57c
parent55f35c5398ffec5835c2f014a7787465997a221e
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
tools/tools/netmap/lb.c
tools/tools/netmap/nmreplay.c
tools/tools/netmap/pkt-gen.c