diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-26 14:13:48 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-09-26 13:54:34 +0000 |
commit | 85c0a7807333d379ca1e0d747b9a424daea2352e (patch) | |
tree | 08aa0ae5fad2e4d952f9d788c5965b25cff18866 | |
parent | a0eb34232f909207282396ce9612078627ed358b (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.c | 2 | ||||
-rw-r--r-- | epan/tap.c | 2 | ||||
-rw-r--r-- | wiretap/wtap.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codecs.c b/codecs/codecs.c index 93350237f1..45716931ef 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 0111412d60..44ab2fc2a7 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 c9257e728e..64c10156eb 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; } |