From 2debc3e5f11438a7993c0775479787e155c3894d Mon Sep 17 00:00:00 2001 From: Yinette Hodge Date: Fri, 22 Oct 2021 04:47:46 +1100 Subject: [PATCH] Fixing multiple definitions of exitflag (szechyjs#104) (#105) Thanks to N0YKG for the fix! I am just making the PR :) --- include/dsd.h | 2 +- src/dsd_main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dsd.h b/include/dsd.h index 22ef3e9..353b8de 100644 --- a/include/dsd.h +++ b/include/dsd.h @@ -61,7 +61,7 @@ /* * global variables */ -int exitflag; +extern int exitflag; typedef struct diff --git a/src/dsd_main.c b/src/dsd_main.c index 4069ce0..02decec 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -28,6 +28,7 @@ #include "p25p1_heuristics.h" #include "pa_devs.h" +int exitflag = 0; int comp (const void *a, const void *b)