summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-core-commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-23 21:40:07 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-23 21:40:07 +0000
commit8ce36c05eab6c1787c4e62052fb8d2ba6369cbe8 (patch)
tree52324a388e270f22cef46fb5a5fcdcc1c3d71ac8 /src/fe-common/core/fe-core-commands.c
parent8fb2249f0742cd391796b2a07c6611a696f7681a (diff)
downloadirssi-8ce36c05eab6c1787c4e62052fb8d2ba6369cbe8.zip
several fixes to make irssi compile without warnings with MIPSpro
also fixed ctcp_queue_clean() - it might have crashed sometimes.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-core-commands.c')
-rw-r--r--src/fe-common/core/fe-core-commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index c942c3dd..6b3bfc90 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -69,7 +69,7 @@ static int commands_compare(COMMAND_REC *rec, COMMAND_REC *rec2)
static void help_category(GSList *cmdlist, gint items, gint max)
{
- COMMAND_REC *rec, *last;
+ COMMAND_REC *rec;
GString *str;
GSList *tmp;
gint lines, cols, line, col, skip;
@@ -80,8 +80,8 @@ static void help_category(GSList *cmdlist, gint items, gint max)
cols = max > 65 ? 1 : (65 / max);
lines = items <= cols ? 1 : items / cols+1;
- last = NULL; cmdbuf = g_malloc(max+1); cmdbuf[max] = '\0';
- for (line = 0, col = 0, skip = 1, tmp = cmdlist; line < lines; last = rec, tmp = tmp->next)
+ cmdbuf = g_malloc(max+1); cmdbuf[max] = '\0';
+ for (line = 0, col = 0, skip = 1, tmp = cmdlist; line < lines; tmp = tmp->next)
{
rec = tmp->data;