From d45e9cb062addaadbe9e51af07d606bda4ddc507 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 19 Jul 2011 09:54:23 -0500 Subject: [PATCH] libnm-util: rename symbol to fix export check The export check looks for symbols that begin with "nm_" (except for GObject class stuff) which indicate that the symbol should be exported. If the symbols is 'l' (local) as reported by objdump that probably means we forgot to add it to the .ver file and it really should be exported. nm_gvalue_dup() shouldn't be exported though, so rename it such that it's obviously internal. --- libnm-util/nm-param-spec-specialized.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnm-util/nm-param-spec-specialized.c b/libnm-util/nm-param-spec-specialized.c index 93623a1185..7e921bca3b 100644 --- a/libnm-util/nm-param-spec-specialized.c +++ b/libnm-util/nm-param-spec-specialized.c @@ -230,7 +230,7 @@ _gvalue_destroy (gpointer data) } static GValue * -nm_gvalue_dup (const GValue *value) +_gvalue_dup (const GValue *value) { GValue *dup; @@ -246,7 +246,7 @@ iterate_collection (const GValue *value, gpointer user_data) { GSList **list = (GSList **) user_data; - *list = g_slist_prepend (*list, nm_gvalue_dup (value)); + *list = g_slist_prepend (*list, _gvalue_dup (value)); } static gint @@ -306,7 +306,7 @@ iterate_map (const GValue *key_val, { GHashTable **hash = (GHashTable **) user_data; - g_hash_table_insert (*hash, g_value_dup_string (key_val), nm_gvalue_dup (value_val)); + g_hash_table_insert (*hash, g_value_dup_string (key_val), _gvalue_dup (value_val)); } typedef struct {