From: Uwe Hermann Date: Sat, 3 May 2014 21:52:54 +0000 (+0200) Subject: Make 'pd_list' static, it's only used in one file. X-Git-Tag: libsigrokdecode-0.3.0~16 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=2060510aaafcc7eb27fac071334b4f8aa1f3cab2;hp=17475b09ef9504f91a28b0873b53cec329513077 Make 'pd_list' static, it's only used in one file. --- diff --git a/decoder.c b/decoder.c index f31202b..4b32638 100644 --- a/decoder.c +++ b/decoder.c @@ -40,7 +40,7 @@ /** @cond PRIVATE */ /* The list of protocol decoders. */ -SRD_PRIV GSList *pd_list = NULL; +static GSList *pd_list = NULL; /* srd.c */ extern GSList *searchpaths; diff --git a/srd.c b/srd.c index b74b780..9d04a8e 100644 --- a/srd.c +++ b/srd.c @@ -32,9 +32,6 @@ SRD_PRIV GSList *searchpaths = NULL; extern GSList *sessions; extern int max_session_id; -/* decoder.c */ -extern SRD_PRIV GSList *pd_list; - /** @endcond */ /**