diff options
author | Colin Walters <walters@verbum.org> | 2013-08-29 17:02:27 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-08-29 17:02:27 -0400 |
commit | 042d5a0eceb6701525b55126c29bea7067e7ec65 (patch) | |
tree | 5edc43a08a302a37c54635c8725c81a6b63ab20a | |
parent | 00bd926b02e30484942405379c23e493c048b793 (diff) | |
download | libgsystem-042d5a0eceb6701525b55126c29bea7067e7ec65.tar.gz |
localalloc: Fix extra indirection on gs_strfrev implementation
This was tripping a compiler warning in NetworkManager; the right way
to fix it is actually to be less magical in the macro and lose our
synthesized *. Instead add it explicitly for each type.
-rw-r--r-- | gsystem-local-alloc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gsystem-local-alloc.c b/gsystem-local-alloc.c index 0d404ff..fa4971d 100644 --- a/gsystem-local-alloc.c +++ b/gsystem-local-alloc.c @@ -83,7 +83,7 @@ gs_local_free (void *loc) void **location = loc; \ if (location) \ { \ - type *value = *location; \ + type value = *location; \ if (value) \ function (value); \ } \ @@ -92,55 +92,55 @@ gs_local_free (void *loc) void gs_local_obj_unref (void *loc) { - _gs_local_free(GObject, g_object_unref); + _gs_local_free(GObject*, g_object_unref); } void gs_local_variant_unref (void *loc) { - _gs_local_free(GVariant, g_variant_unref); + _gs_local_free(GVariant*, g_variant_unref); } void gs_local_variant_iter_free (void *loc) { - _gs_local_free(GVariantIter, g_variant_iter_free); + _gs_local_free(GVariantIter*, g_variant_iter_free); } void gs_local_variant_builder_unref (void *loc) { - _gs_local_free(GVariantBuilder, g_variant_builder_unref); + _gs_local_free(GVariantBuilder*, g_variant_builder_unref); } void gs_local_ptrarray_unref (void *loc) { - _gs_local_free(GPtrArray, g_ptr_array_unref); + _gs_local_free(GPtrArray*, g_ptr_array_unref); } void gs_local_array_unref (void *loc) { - _gs_local_free(GArray, g_array_unref); + _gs_local_free(GArray*, g_array_unref); } void gs_local_hashtable_unref (void *loc) { - _gs_local_free(GHashTable, g_hash_table_unref); + _gs_local_free(GHashTable*, g_hash_table_unref); } void gs_local_checksum_free (void *loc) { - _gs_local_free(GChecksum, g_checksum_free); + _gs_local_free(GChecksum*, g_checksum_free); } void gs_local_bytes_unref (void *loc) { - _gs_local_free(GBytes, g_bytes_unref); + _gs_local_free(GBytes*, g_bytes_unref); } void |