From 81ef5de59142d92fa9d43a6240b5e8078d393226 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 15 Mar 2008 13:02:55 +0000 Subject: Remove silly macro. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4770 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-recode.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/fe-common') diff --git a/src/fe-common/core/fe-recode.c b/src/fe-common/core/fe-recode.c index 58bd7ad5..44d7dfd4 100644 --- a/src/fe-common/core/fe-recode.c +++ b/src/fe-common/core/fe-recode.c @@ -33,11 +33,6 @@ # include #endif -#define SLIST_FOREACH(var, head) \ -for ((var) = (head); \ - (var); \ - (var) = g_slist_next((var))) - char *recode_fallback = NULL; char *recode_out_default = NULL; char *term_charset = NULL; @@ -79,8 +74,7 @@ static void fe_recode_cmd (const char *data, SERVER_REC *server, WI_ITEM_REC *wi } printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_RECODE_HEADER); - SLIST_FOREACH(tmp, sorted) - { + for (tmp = sorted; tmp != NULL; tmp = tmp->next) { CONFIG_NODE *node = tmp->data; printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_RECODE_LINE, node->key, node->value); } -- cgit v1.2.3