HomeFreeBSD

pf: Reduce diffs against OpenBSD in pf_if.c

Description

pf: Reduce diffs against OpenBSD in pf_if.c

Use memset instead of bzero, memcpy instead of bcopy, and add some
optional {}s.

Reviewed by: kp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36267

(cherry picked from commit 6b598e263bebaf6664b64f80f029a6ebcfc2848d)

Details

Provenance
emasteAuthored on Aug 19 2022, 9:02 PM
Reviewer
kp
Differential Revision
D36267: pf: Reduce diffs against OpenBSD in pf_if.c
Parents
rG86bd7f67c31f: pf: Make sure that pfi_update_status() always zeros counters
Branches
Unknown
Tags
Unknown