Const return type for static error messages
authorPhilip Chimento <philip.chimento@gmail.com>
Sat, 15 Sep 2012 22:40:54 +0000 (00:40 +0200)
committerPhilip Chimento <philip.chimento@gmail.com>
Sat, 15 Sep 2012 23:03:58 +0000 (01:03 +0200)
libchimara/resource.c
libchimara/resource.h

index 9c40723057393c32f885365cff9dab2baa4dc6a1..abf0fc389c971ca8f19aa27c6c3ac53362c19741 100644 (file)
@@ -114,7 +114,7 @@ giblorb_print_contents(giblorb_map_t *map)
        }       
 }
 
-gchar*
+const char *
 giblorb_get_error_message(giblorb_err_t err)
 {
        switch(err)
index a7325416e5ee1efb90327fe41d4d361fa31c9789..6f5b70d3bda6ea063548debd7dd8a7c7ed455081 100644 (file)
@@ -8,6 +8,6 @@
 #include "magic.h"
 
 void giblorb_print_contents(giblorb_map_t *map);
-gchar* giblorb_get_error_message(giblorb_err_t err);
+const char * giblorb_get_error_message(giblorb_err_t err);
 
 #endif