[glib] genmarshal: Constify global variables



commit a8b5192d16fe3456bb0a27258688628ad9eda8b6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Apr 26 13:45:55 2017 +0100

    genmarshal: Constify global variables
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781755

 gobject/glib-genmarshal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/glib-genmarshal.c b/gobject/glib-genmarshal.c
index dc56369..f64b80c 100644
--- a/gobject/glib-genmarshal.c
+++ b/gobject/glib-genmarshal.c
@@ -120,8 +120,8 @@ static const GScannerConfig scanner_config_template =
   FALSE                 /* symbol_2_token */,
   FALSE                 /* scope_0_fallback */,
 };
-static gchar           * const std_marshaller_prefix = "g_cclosure_marshal";
-static gchar           *marshaller_prefix = "g_cclosure_user_marshal";
+static const char       *std_marshaller_prefix = "g_cclosure_marshal";
+static const char       *marshaller_prefix = "g_cclosure_user_marshal";
 static gchar           *output_fn = NULL;
 static gint             output_fd = -1;
 static gchar           *output_tmpfn = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]