Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2022 17:11:18 GMT
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 73084fa85ffd - main - sysutils/pftop: Fix build with clang 15
Message-ID:  <202212091711.2B9HBIMu011270@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=73084fa85ffdf454d0a1348d17a6e772c22e7b28

commit 73084fa85ffdf454d0a1348d17a6e772c22e7b28
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-12-09 17:02:29 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2022-12-09 17:06:53 +0000

    sysutils/pftop: Fix build with clang 15
    
    PR:             268209
---
 sysutils/pftop/Makefile                  | 1 +
 sysutils/pftop/files/extra-patch-pftop.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index 9794f4a81acf..73cf4707a070 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pftop
 PORTVERSION=	0.8
+PORTREVISION=	1
 CATEGORIES=	sysutils net
 
 MAINTAINER=	grembo@FreeBSD.org
diff --git a/sysutils/pftop/files/extra-patch-pftop.c b/sysutils/pftop/files/extra-patch-pftop.c
index 0ce7c8ffd2b4..e22198745b33 100644
--- a/sysutils/pftop/files/extra-patch-pftop.c
+++ b/sysutils/pftop/files/extra-patch-pftop.c
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212091711.2B9HBIMu011270>