HomeFreeBSD

Fix unused variable warning in if_pfsync.c

Description

Fix unused variable warning in if_pfsync.c

With clang 15, the following -Werror warning is produced:

sys/netpfil/pf/if_pfsync.c:2153:9: error: variable 'sent' set but not used [-Werror,-Wunused-but-set-variable]
        int i, sent = 0;
               ^

The 'sent' variable was used in the for loop later in the
pfsync_bulk_update() function, but refactoring in 4fc65bcbe3fb7 got rid
of it. Remove the variable since it no longer serves any purpose.

MFC after: 3 days

(cherry picked from commit fb48e998501f8d1defecffb772121a4141cdc2b6)

Details

Provenance
dimAuthored on Jul 25 2022, 6:15 PM
Parents
rG63e8ce61d72a: Fix unused variable warning in sctp_timer.c
Branches
Unknown
Tags
Unknown