diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2022-11-06 21:31:25 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2022-11-06 21:31:25 +0000 |
commit | 579012a96b8e3d06c0054b44b63c56363bc4c173 (patch) | |
tree | d961a4c181a070db1580f8ff21a3f4246295ca17 /sys | |
parent | 5815fac4ad7ff80fbcb99fbc762d2a26cd4eab6a (diff) |
get rid of pfsync_state_export.
it wraps pf_state_export and has the same arguments and return type.
pfsync can just call pf_state_export instead.
ok clang
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_pfsync.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 8f36e816f8b..d19129baaf9 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.307 2022/11/06 18:05:05 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.308 2022/11/06 21:31:24 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -501,12 +501,6 @@ pfsync_ifdetach(void *arg) sc->sc_sync_ifidx = 0; } -void -pfsync_state_export(struct pfsync_state *sp, struct pf_state *st) -{ - pf_state_export(sp, st); -} - int pfsync_input(struct mbuf **mp, int *offp, int proto, int af) { @@ -1312,7 +1306,7 @@ pfsync_out_state(struct pf_state *st, void *buf) { struct pfsync_state *sp = buf; - pfsync_state_export(sp, st); + pf_state_export(sp, st); } void |