1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

sysutils/pftop: Fix build with clang 15

PR:		268209
This commit is contained in:
Dimitry Andric 2022-12-09 18:02:29 +01:00 committed by Michael Gmelin
parent 9671e42b93
commit 73084fa85f
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= pftop
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= sysutils net
MAINTAINER= grembo@FreeBSD.org

View File

@ -343,7 +343,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/02 21:16:10 sthen Exp $
#endif
#ifdef HAVE_RULE_STATES
+#ifdef HAVE_PFSYNC_KEY
+ print_fld_size(FLD_STATS, pr->states_tot);
+ print_fld_size(FLD_STATS, *pr->states_tot);
+#else
print_fld_size(FLD_STATS, pr->states);
#endif