]> sigrok.org Git - libsigrokdecode.git/commitdiff
Make 'pd_list' static, it's only used in one file.
authorUwe Hermann <redacted>
Sat, 3 May 2014 21:52:54 +0000 (23:52 +0200)
committerUwe Hermann <redacted>
Sat, 3 May 2014 21:52:54 +0000 (23:52 +0200)
decoder.c
srd.c

index f31202b1937ef5690dae41d8f7e18f713c171c9b..4b3263846587de3e74dbc17dc9c3184b0a368c18 100644 (file)
--- a/decoder.c
+++ b/decoder.c
@@ -40,7 +40,7 @@
 /** @cond PRIVATE */
 
 /* The list of protocol decoders. */
 /** @cond PRIVATE */
 
 /* The list of protocol decoders. */
-SRD_PRIV GSList *pd_list = NULL;
+static GSList *pd_list = NULL;
 
 /* srd.c */
 extern GSList *searchpaths;
 
 /* srd.c */
 extern GSList *searchpaths;
diff --git a/srd.c b/srd.c
index b74b780ebf75e70397bd2c50efc03d2c98c14e7e..9d04a8e1d110307a221420d40a533f16ae7f83d7 100644 (file)
--- a/srd.c
+++ b/srd.c
@@ -32,9 +32,6 @@ SRD_PRIV GSList *searchpaths = NULL;
 extern GSList *sessions;
 extern int max_session_id;
 
 extern GSList *sessions;
 extern int max_session_id;
 
-/* decoder.c */
-extern SRD_PRIV GSList *pd_list;
-
 /** @endcond */
 
 /**
 /** @endcond */
 
 /**