From: Philip Chimento Date: Sat, 15 Sep 2012 22:40:54 +0000 (+0200) Subject: Const return type for static error messages X-Git-Tag: v0.9~8^2 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=77fe88af15dc59b5595822f70d75082f1ccd34a4;p=projects%2Fchimara%2Fchimara.git Const return type for static error messages --- diff --git a/libchimara/resource.c b/libchimara/resource.c index 9c40723..abf0fc3 100644 --- a/libchimara/resource.c +++ b/libchimara/resource.c @@ -114,7 +114,7 @@ giblorb_print_contents(giblorb_map_t *map) } } -gchar* +const char * giblorb_get_error_message(giblorb_err_t err) { switch(err) diff --git a/libchimara/resource.h b/libchimara/resource.h index a732541..6f5b70d 100644 --- a/libchimara/resource.h +++ b/libchimara/resource.h @@ -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