summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-05-03 23:52:54 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-05-03 23:52:54 +0200
commit2060510aaafcc7eb27fac071334b4f8aa1f3cab2 (patch)
tree852ce8d064e3347d8b07e209032f5e06f2f47ed2
parent17475b09ef9504f91a28b0873b53cec329513077 (diff)
downloadlibsigrokdecode-2060510aaafcc7eb27fac071334b4f8aa1f3cab2.tar.gz
libsigrokdecode-2060510aaafcc7eb27fac071334b4f8aa1f3cab2.zip
Make 'pd_list' static, it's only used in one file.
-rw-r--r--decoder.c2
-rw-r--r--srd.c3
2 files changed, 1 insertions, 4 deletions
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 */
/**