_SOUP_ATOMIC_INTERN_STRING: cast result to (const char *)
authorDan Winship <danw@gnome.org>
Tue, 8 Sep 2009 17:03:53 +0000 (13:03 -0400)
committerDan Winship <danw@gnome.org>
Fri, 11 Sep 2009 15:48:50 +0000 (11:48 -0400)
http://bugzilla.gnome.org/show_bug.cgi?id=594508

libsoup/soup-misc.h

index c36712c..e40fa91 100644 (file)
@@ -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 */