1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Merge pull request #63 from dgl/cleanups

Clean-up some compiler warnings
This commit is contained in:
Alexander Færøy 2014-06-27 14:24:06 +02:00
commit da3f426edb
5 changed files with 4 additions and 5 deletions

View File

@ -477,7 +477,7 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
}
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);
SSL_CTX_set_default_passwd_cb(ctx, get_pem_password_callback);
SSL_CTX_set_default_passwd_cb_userdata(ctx, mypass);
SSL_CTX_set_default_passwd_cb_userdata(ctx, (void *)mypass);
if (mycert && *mycert) {
char *scert = NULL, *spkey = NULL;

View File

@ -211,7 +211,6 @@ void window_item_next(WINDOW_REC *window)
WI_ITEM_REC *window_item_find_window(WINDOW_REC *window,
void *server, const char *name)
{
CHANNEL_REC *channel;
GSList *tmp;
for (tmp = window->items; tmp != NULL; tmp = tmp->next) {

View File

@ -242,7 +242,7 @@ static void hide_safe_channel_id(IRC_SERVER_REC *server, char *chans)
if (idchan == NULL)
return;
}
nick_flags = server->get_nick_flags(server);
nick_flags = server->get_nick_flags(SERVER(server));
while (*idchan != '\0') {
id = *idchan;

View File

@ -115,7 +115,6 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
{
const char *nick, *prefixes;
int op, halfop, voice;
NICK_REC *nickrec;
char newprefixes[MAX_USER_PREFIXES + 1];
int i;
@ -145,7 +144,7 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
newprefixes[i] = '\0';
prefixes = newprefixes;
}
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE, prefixes);
irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE, prefixes);
}
static void session_restore_channel(IRC_CHANNEL_REC *channel)

View File

@ -24,6 +24,7 @@
#include "servers-redirect.h"
#include "levels.h"
#include "settings.h"
#include "misc.h"
#include "irc.h"
#include "irc-channels.h"