[libsoup] _SOUP_ATOMIC_INTERN_STRING: cast result to (const char *)
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libsoup] _SOUP_ATOMIC_INTERN_STRING: cast result to (const char *)
- Date: Fri, 11 Sep 2009 15:50:32 +0000 (UTC)
commit 6cc543b352c26d041a31b9c0e47478f9bce563cd
Author: Dan Winship <danw gnome org>
Date: Tue Sep 8 13:03:53 2009 -0400
_SOUP_ATOMIC_INTERN_STRING: cast result to (const char *)
http://bugzilla.gnome.org/show_bug.cgi?id=594508
libsoup/soup-misc.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-misc.h b/libsoup/soup-misc.h
index c36712c..e40fa91 100644
--- a/libsoup/soup-misc.h
+++ b/libsoup/soup-misc.h
@@ -33,7 +33,7 @@ guint soup_str_case_hash (gconstpointer key);
gboolean soup_str_case_equal (gconstpointer v1,
gconstpointer v2);
-#define _SOUP_ATOMIC_INTERN_STRING(variable, value) (g_atomic_pointer_get (&(variable)) ? (variable) : (g_atomic_pointer_set (&(variable), (gpointer)g_intern_static_string (value)), (variable)))
+#define _SOUP_ATOMIC_INTERN_STRING(variable, value) ((const char *)(g_atomic_pointer_get (&(variable)) ? (variable) : (g_atomic_pointer_set (&(variable), (gpointer)g_intern_static_string (value)), (variable))))
/* SSL stuff */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]