From: dlg Date: Sun, 6 Nov 2022 21:31:24 +0000 (+0000) Subject: get rid of pfsync_state_export. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a5c2db95e153c86e54293d09adfcaab05b890aa9;p=openbsd 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 --- 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