mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Removed some warning messages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@403 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
30f4151e51
commit
68994bd738
@ -380,7 +380,7 @@ int net_gethostbyaddr(IPADDR *ip, char **name)
|
||||
if (getnameinfo(ai->ai_addr, ai->ai_addrlen, hbuf, sizeof(hbuf), NULL, 0, 0))
|
||||
return 1;
|
||||
|
||||
/*FIXME: how does this work? *name = g_strdup(ai->???);*/
|
||||
/*FIXME: how does this work? *name = g_strdup(ai->?);*/
|
||||
freeaddrinfo(ai);
|
||||
return 1;
|
||||
#else
|
||||
|
@ -146,7 +146,7 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos)
|
||||
BUT if we start completion with "/msg "<tab>, we don't
|
||||
want to complete the /msg word, but instead complete empty
|
||||
word with /msg being in linestart. */
|
||||
if (pos > 0 && line[*pos-1] == ' ') {
|
||||
if (*pos > 0 && line[*pos-1] == ' ') {
|
||||
char *old;
|
||||
|
||||
old = linestart;
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "module.h"
|
||||
#include "module-formats.h"
|
||||
#include "signals.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "irc.h"
|
||||
@ -437,7 +438,6 @@ static void event_whowas(const char *data, IRC_SERVER_REC *server)
|
||||
static void event_whois_channels(const char *data, IRC_SERVER_REC *server)
|
||||
{
|
||||
char *params, *nick, *chans;
|
||||
GString *str;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
|
@ -271,7 +271,7 @@ static LINE_CACHE_REC *gui_window_line_cache(GUI_WINDOW_REC *gui, LINE_REC *line
|
||||
break;
|
||||
|
||||
if (*ptr == LINE_CMD_CONTINUE) {
|
||||
char *tmp;
|
||||
unsigned char *tmp;
|
||||
|
||||
memcpy(&tmp, ptr+1, sizeof(char *));
|
||||
ptr = tmp;
|
||||
@ -313,7 +313,7 @@ static LINE_CACHE_REC *gui_window_line_cache(GUI_WINDOW_REC *gui, LINE_REC *line
|
||||
}
|
||||
|
||||
sub = g_new(LINE_CACHE_SUB_REC, 1);
|
||||
sub->start = ptr;
|
||||
sub->start = (char *) ptr;
|
||||
sub->indent = indent_pos;
|
||||
sub->color = color;
|
||||
|
||||
|
@ -251,7 +251,7 @@ static void read_settings(void)
|
||||
flood_tag = -1;
|
||||
}
|
||||
|
||||
if (time > 0 && flood_max_msgs > 0) {
|
||||
if (flood_timecheck > 0 && flood_max_msgs > 0) {
|
||||
flood_tag = g_timeout_add(500, (GSourceFunc) flood_timeout, NULL);
|
||||
signal_add("event privmsg", (SIGNAL_FUNC) flood_privmsg);
|
||||
signal_add("event notice", (SIGNAL_FUNC) flood_notice);
|
||||
|
Loading…
Reference in New Issue
Block a user