freebsd-dev/sys/netpfil/pf
Dimitry Andric 503b5870c0 Adjust function definitions in pf.c to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced:

    sys/netpfil/pf/pf.c:985:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_mtag_initialize()
                      ^
                       void
    sys/netpfil/pf/pf.c:995:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_initialize()
                 ^
                  void
    sys/netpfil/pf/pf.c:1089:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_mtag_cleanup()
                   ^
                    void
    sys/netpfil/pf/pf.c:1096:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_cleanup()
              ^
               void
    sys/netpfil/pf/pf.c:1989:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_purge_expired_src_nodes()
                              ^
                               void
    sys/netpfil/pf/pf.c:2174:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pf_purge_unlinked_rules()
                           ^
                            void

This is because pf_mtag_initialize(), pf_initialize(),
pf_mtag_cleanup(), pf_cleanup(), pf_purge_expired_src_nodes(), and
pf_purge_unlinked_rules() are declared with (void) argument lists, but
defined with empty argument lists. Make the definitions match the
declarations.

MFC after:	3 days
2022-07-25 20:02:31 +02:00
..
if_pflog.c if_pflog: fix packet length 2021-12-04 08:42:55 +01:00
if_pfsync.c pfsync: NULL check before dereference 2022-04-21 17:59:45 +02:00
in4_cksum.c
pf_altq.h pf: qid and pqid can be uint16_t 2021-09-10 17:07:57 +02:00
pf_if.c pf: Make sure that pfi_update_status() always zeros counters 2022-06-30 10:31:26 -04:00
pf_ioctl.c pf: Ensure that pfiio_name is always nul terminated 2022-06-30 10:31:26 -04:00
pf_lb.c pf: protect the rpool from races 2022-01-14 10:30:33 +01:00
pf_mtag.h pf: tag dummynet'd route-to packets with their real destination 2022-05-12 21:50:10 +02:00
pf_norm.c pf: remove unused variables 2021-11-23 16:44:37 +01:00
pf_nv.c pf: support matching on tags for Ethernet rules 2022-06-20 10:16:20 +02:00
pf_nv.h pf: Initial Ethernet level filtering code 2022-03-02 17:00:03 +01:00
pf_osfp.c
pf_ruleset.c pf: add anchor support for ether rules 2022-03-02 17:00:07 +01:00
pf_syncookies.c pf: fix more syncookie memory leaks 2022-06-02 20:17:25 +02:00
pf_table.c pf: counter argument to pfr_pool_get() may never be NULL 2022-04-21 17:59:45 +02:00
pf.c Adjust function definitions in pf.c to avoid clang 15 warnings 2022-07-25 20:02:31 +02:00
pf.h pf: import pf_set_protostate() from OpenBSD 2021-09-01 12:02:19 +02:00