The fallback parameter to g_convert_with_fallback() should be const
authorBenjamin Otte <otte@redhat.com>
Tue, 16 Mar 2010 15:34:50 +0000 (16:34 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 16 Mar 2010 15:40:04 +0000 (16:40 +0100)
This patch makes it so.

glib/gconvert.c
glib/gconvert.h

index 5ec8f1d..520c32a 100644 (file)
@@ -808,7 +808,7 @@ g_convert_with_fallback (const gchar *str,
                         gssize       len,    
                         const gchar *to_codeset,
                         const gchar *from_codeset,
-                        gchar       *fallback,
+                        const gchar *fallback,
                         gsize       *bytes_read,
                         gsize       *bytes_written,
                         GError     **error)
index 4d76784..c4f274f 100644 (file)
@@ -79,7 +79,7 @@ gchar* g_convert_with_fallback (const gchar  *str,
                                gssize        len,            
                                const gchar  *to_codeset,
                                const gchar  *from_codeset,
-                               gchar        *fallback,
+                               const gchar  *fallback,
                                gsize        *bytes_read,     
                                gsize        *bytes_written,  
                                GError      **error) G_GNUC_MALLOC;