diff options
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r-- | src/common/plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c index be58f285..070b348b 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -426,14 +426,14 @@ plugin_auto_load_cb (char *filename) } } -static char * +static const char * plugin_get_libdir (void) { const char *libdir; libdir = g_getenv ("HEXCHAT_LIBDIR"); if (libdir && *libdir) - return (char*)libdir; + return libdir; else return HEXCHATLIBDIR; } @@ -441,7 +441,7 @@ plugin_get_libdir (void) void plugin_auto_load (session *sess) { - char *lib_dir; + const char *lib_dir; char *sub_dir; ps = sess; |