git: c86fa3b8d72f - main - pf: quiet -Wredundant-decls for pf_get_ruleset_number

Ryan Libby rlibby at FreeBSD.org
Mon Jan 11 05:54:31 UTC 2021


The branch main has been updated by rlibby:

URL: https://cgit.FreeBSD.org/src/commit/?id=c86fa3b8d72f9f7221919753b304eec7f1a546cf

commit c86fa3b8d72f9f7221919753b304eec7f1a546cf
Author:     Ryan Libby <rlibby at FreeBSD.org>
AuthorDate: 2021-01-11 05:53:15 +0000
Commit:     Ryan Libby <rlibby at FreeBSD.org>
CommitDate: 2021-01-11 05:53:15 +0000

    pf: quiet -Wredundant-decls for pf_get_ruleset_number
    
    In e86bddea9fe62d5093a1942cf21950b3c5ca62e5 sys/netpfil/pf/pf.h grew a
    declaration of pf_get_ruleset_number.  Now delete the old declaration
    from sys/net/pfvar.h.
    
    Reviewed by:    kp
    Sponsored by:   Dell EMC Isilon
    Differential Revision:  https://reviews.freebsd.org/D28081
---
 sys/net/pfvar.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index c7df8ffd82c5..9c8c642a6ace 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1629,7 +1629,6 @@ VNET_DECLARE(struct pf_kanchor,			 pf_main_anchor);
 #define	V_pf_main_anchor			 VNET(pf_main_anchor)
 #define pf_main_ruleset	V_pf_main_anchor.ruleset
 
-int			 pf_get_ruleset_number(u_int8_t);
 void			 pf_init_kruleset(struct pf_kruleset *);
 int			 pf_kanchor_setup(struct pf_krule *,
 			    const struct pf_kruleset *, const char *);


More information about the dev-commits-src-all mailing list