On Thu, Dec 23, 2021 at 08:18:18AM +0100, Theo Buehler wrote: > On Thu, Dec 23, 2021 at 12:35:28AM -0500, Kurt Mosiejczuk wrote: > > net/ssldump cannot be built with base-gcc.
> > This patch sets COMPILER so it builds successfully on sparc64. > The cast triggering the error doesn't do anything useful. > Let's just do this: Looks good. ok kmos --Kurt > Index: Makefile > =================================================================== > RCS file: /cvs/ports/net/ssldump/Makefile,v > retrieving revision 1.19 > diff -u -p -r1.19 Makefile > --- Makefile 13 Nov 2021 19:13:20 -0000 1.19 > +++ Makefile 23 Dec 2021 07:06:51 -0000 > @@ -6,6 +6,7 @@ GH_ACCOUNT= adulau > GH_PROJECT= ssldump > GH_TAGNAME= v1.4 > CATEGORIES= net > +REVISION= 0 > > HOMEPAGE= https://github.com/adulau/ssldump > > Index: patches/patch-base_pcap-snoop_c > =================================================================== > RCS file: /cvs/ports/net/ssldump/patches/patch-base_pcap-snoop_c,v > retrieving revision 1.2 > diff -u -p -r1.2 patch-base_pcap-snoop_c > --- patches/patch-base_pcap-snoop_c 13 Nov 2021 19:13:20 -0000 1.2 > +++ patches/patch-base_pcap-snoop_c 23 Dec 2021 07:14:55 -0000 > @@ -1,5 +1,9 @@ > $OpenBSD: patch-base_pcap-snoop_c,v 1.2 2021/11/13 19:13:20 tb Exp $ > > +Remove pointless cast to fix build with base-gcc: > + > +base/pcap-snoop.c:100: error: initializer element is not constant > + > Index: base/pcap-snoop.c > --- base/pcap-snoop.c.orig > +++ base/pcap-snoop.c > @@ -13,6 +17,15 @@ Index: base/pcap-snoop.c > #ifndef _WIN32 > #include <sys/param.h> > #endif > +@@ -95,7 +97,7 @@ int conn_freq = 100; // Number of packets after which > + // cleaning is performed > + int conn_ttl = 100; // TTL of inactive connections in connection pool > + struct timeval last_packet_seen_time = // Timestamp of the last packet of > the > +- (struct timeval) {0}; // last block of conn_freq packets > seen > ++ {0}; // last block of conn_freq packets > seen > + > + logger_mod *logger=NULL; > + > @@ -430,7 +432,7 @@ int main(argc,argv) > > if(!file){ >
