[glib: 1/3] gmodule: Add some missing consts




commit 73a78f7470c2057fcd9bb1a1418444459ca145e4
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu May 27 13:35:18 2021 +0100

    gmodule: Add some missing consts
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gmodule/gmodule-dl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c
index bb2df6836..7fb30bd84 100644
--- a/gmodule/gmodule-dl.c
+++ b/gmodule/gmodule-dl.c
@@ -74,10 +74,10 @@
 
 
 /* --- functions --- */
-static gchar*
+static const gchar *
 fetch_dlerror (gboolean replace_null)
 {
-  gchar *msg = dlerror ();
+  const gchar *msg = dlerror ();
 
   /* make sure we always return an error message != NULL, if
    * expected to do so. */
@@ -147,7 +147,7 @@ _g_module_symbol (gpointer     handle,
                  const gchar *symbol_name)
 {
   gpointer p;
-  gchar *msg;
+  const gchar *msg;
 
   fetch_dlerror (FALSE);
   p = dlsym (handle, symbol_name);


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