aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-26 14:13:48 +0100
committerJoão Valverde <j@v6e.pt>2017-09-26 13:54:34 +0000
commit85c0a7807333d379ca1e0d747b9a424daea2352e (patch)
tree08aa0ae5fad2e4d952f9d788c5965b25cff18866
parenta0eb34232f909207282396ce9612078627ed358b (diff)
plugins: Use g_slist_prepend() instead.
Change-Id: If145137bfd44025ccab762b67960072777efd302 Reviewed-on: https://code.wireshark.org/review/23750 Reviewed-by: João Valverde <j@v6e.pt>
-rw-r--r--codecs/codecs.c2
-rw-r--r--epan/tap.c2
-rw-r--r--wiretap/wtap.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codecs.c b/codecs/codecs.c
index 9335023..4571693 100644
--- a/codecs/codecs.c
+++ b/codecs/codecs.c
@@ -84,7 +84,7 @@ check_for_codec_plugin(GModule *handle)
*/
plugin = (codec_plugin *)g_malloc(sizeof (codec_plugin));
plugin->register_codec_module = register_codec_module;
- codec_plugins = g_slist_append(codec_plugins, plugin);
+ codec_plugins = g_slist_prepend(codec_plugins, plugin);
return TRUE;
}
diff --git a/epan/tap.c b/epan/tap.c
index 0111412..44ab2fc 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -152,7 +152,7 @@ DIAG_ON(pedantic)
*/
plugin = (tap_plugin *)g_malloc(sizeof (tap_plugin));
plugin->register_tap_listener_fn = register_tap_listener_fn;
- tap_plugins = g_slist_append(tap_plugins, plugin);
+ tap_plugins = g_slist_prepend(tap_plugins, plugin);
return TRUE;
}
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index c9257e7..64c1015 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -73,7 +73,7 @@ check_for_wtap_plugin(GModule *handle)
DIAG_OFF(pedantic)
plugin->register_wtap_module = (void (*)(void))gp;
DIAG_ON(pedantic)
- wtap_plugins = g_slist_append(wtap_plugins, plugin);
+ wtap_plugins = g_slist_prepend(wtap_plugins, plugin);
return TRUE;
}