Christian Weisgerber <[email protected]> writes:

> net/argus: fix the build with -fno-common
>
> This is just unused code that is copy-pasted from ArgusUdp.c where
> is also unused.
>
> OK?

OK gnezdo

>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/argus/Makefile,v
> retrieving revision 1.25
> diff -u -p -r1.25 Makefile
> --- Makefile  20 Mar 2020 16:44:25 -0000      1.25
> +++ Makefile  23 Feb 2021 21:37:21 -0000
> @@ -3,7 +3,7 @@
>  COMMENT =    Audit Record Generation and Utilization System
>  
>  DISTNAME =   argus-3.0.8.2
> -REVISION =   1
> +REVISION =   2
>  CATEGORIES = net
>  
>  HOMEPAGE =   http://qosient.com/argus/
> Index: patches/patch-argus_ArgusUdt_c
> ===================================================================
> RCS file: patches/patch-argus_ArgusUdt_c
> diff -N patches/patch-argus_ArgusUdt_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-argus_ArgusUdt_c    23 Feb 2021 21:37:21 -0000
> @@ -0,0 +1,17 @@
> +$OpenBSD$
> +
> +Fix for -fno-common: remove unused variable duplicated in ArgusUdp.c
> +
> +Index: argus/ArgusUdt.c
> +--- argus/ArgusUdt.c.orig
> ++++ argus/ArgusUdt.c
> +@@ -40,9 +40,6 @@
> + #include <argus_compat.h>
> + #include <ArgusModeler.h>
> + 
> +-#include <argus/bootp.h>
> +-struct bootp *bp;
> +-
> + struct ArgusSystemFlow *
> + ArgusCreateUDTFlow (struct ArgusModelerStruct *model, struct udt_header 
> *udt)
> + {

Reply via email to