mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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
This commit is contained in:
parent
8fb2249f07
commit
8ce36c05ea
30 changed files with 80 additions and 72 deletions
|
|
@ -33,7 +33,7 @@ static void ctcp_queue_clean(IRC_SERVER_REC *server)
|
|||
{
|
||||
GSList *tmp, *next;
|
||||
|
||||
for (tmp = server->ctcpqueue; tmp != NULL; tmp = tmp->next) {
|
||||
for (tmp = server->ctcpqueue; tmp != NULL; tmp = next) {
|
||||
next = tmp->next;
|
||||
if (!server_idle_find(server, GPOINTER_TO_INT(tmp->data))) {
|
||||
server->ctcpqueue =
|
||||
|
|
|
|||
|
|
@ -192,8 +192,10 @@ static void sig_server_looking(SERVER_REC *server)
|
|||
if (!IS_IRC_SERVER(server))
|
||||
return;
|
||||
|
||||
server->channel_find_func = (void *) irc_channel_find_server;
|
||||
server->channels_join = (void *) irc_channels_join;
|
||||
server->channel_find_func =
|
||||
(void *(*)(void *, const char *)) irc_channel_find_server;
|
||||
server->channels_join =
|
||||
(void (*)(void *, const char *, int)) irc_channels_join;
|
||||
}
|
||||
|
||||
void irc_channels_init(void)
|
||||
|
|
|
|||
|
|
@ -343,8 +343,10 @@ static const char *get_nick_flags(void)
|
|||
|
||||
static void sig_connected(IRC_SERVER_REC *server)
|
||||
{
|
||||
if (IS_IRC_SERVER(server))
|
||||
server->get_nick_flags = (void *) get_nick_flags;
|
||||
if (IS_IRC_SERVER(server)) {
|
||||
server->get_nick_flags =
|
||||
(const char *(*)(void)) get_nick_flags;
|
||||
}
|
||||
}
|
||||
|
||||
void irc_nicklist_init(void)
|
||||
|
|
|
|||
|
|
@ -93,7 +93,8 @@ static void sig_server_looking(IRC_SERVER_REC *server)
|
|||
|
||||
server->isnickflag = isnickflag_func;
|
||||
server->ischannel = ischannel_func;
|
||||
server->send_message = (void *) send_message;
|
||||
server->send_message =
|
||||
(void (*)(void *, const char *, const char *)) send_message;
|
||||
}
|
||||
|
||||
static void server_init(IRC_SERVER_REC *server)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#include "servers-redirect.h"
|
||||
|
||||
char *current_server_event;
|
||||
static int signal_send_command;
|
||||
static int signal_default_event;
|
||||
static int signal_server_event;
|
||||
static int signal_server_incoming;
|
||||
|
|
@ -407,7 +406,6 @@ void irc_irc_init(void)
|
|||
signal_add("server incoming", (SIGNAL_FUNC) irc_parse_incoming_line);
|
||||
|
||||
current_server_event = NULL;
|
||||
signal_send_command = signal_get_uniq_id("send command");
|
||||
signal_default_event = signal_get_uniq_id("default event");
|
||||
signal_server_event = signal_get_uniq_id("server event");
|
||||
signal_server_incoming = signal_get_uniq_id("server incoming");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue