From bd00ff54c2bf569de50ff2df433bf90f279321a3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 10 Apr 2002 02:53:06 +0000 Subject: Fixed one error and several warnings with GLIB 2.0 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2663 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/special-vars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/special-vars.c') diff --git a/src/core/special-vars.c b/src/core/special-vars.c index 2556cd63..7291f469 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -106,7 +106,7 @@ static char *get_long_variable_value(const char *key, SERVER_REC *server, void *item, int *free_ret) { EXPANDO_FUNC func; - char *ret; + const char *ret; int type; *free_ret = FALSE; @@ -124,7 +124,7 @@ static char *get_long_variable_value(const char *key, SERVER_REC *server, /* environment variable? */ ret = g_getenv(key); if (ret != NULL) - return ret; + return (char *) ret; return NULL; } -- cgit v1.2.3