From 2c83acee310d177ec6927f51facd91705ae619ef Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Fri, 9 Dec 2022 18:29:11 -0800 Subject: [PATCH] Add extern for globally defined currentdsp (pointer), add static to curdsp (storage). --- src/dspif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dspif.c b/src/dspif.c index 1ef7772..24aa464 100644 --- a/src/dspif.c +++ b/src/dspif.c @@ -21,7 +21,8 @@ #include "dspifdefs.h" #include "xinitdefs.h" -DspInterfaceRec curdsp; +static DspInterfaceRec curdsp = {0}; +extern DspInterface currentdsp; DspInterface currentdsp = &curdsp; #ifdef XWINDOW