summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-30 22:01:36 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-30 22:01:36 +0000
commit68994bd738b616f5c7d279ec775fd5cc959ff92f (patch)
treefe610e2523b7820c14eb0dd1db4a2b265bce89e9
parent30f4151e5173f228d8f8f84f67bf2078b157ac05 (diff)
downloadirssi-68994bd738b616f5c7d279ec775fd5cc959ff92f.zip
Removed some warning messages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@403 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/core/network.c2
-rw-r--r--src/fe-common/core/completion.c2
-rw-r--r--src/fe-common/irc/fe-events-numeric.c2
-rw-r--r--src/fe-text/gui-windows.c4
-rw-r--r--src/irc/flood/flood.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/core/network.c b/src/core/network.c
index fcb6c087..e034e609 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -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
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c
index 03b9b121..4a62d4f6 100644
--- a/src/fe-common/core/completion.c
+++ b/src/fe-common/core/completion.c
@@ -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;
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c
index 6d48988b..caceb4c5 100644
--- a/src/fe-common/irc/fe-events-numeric.c
+++ b/src/fe-common/irc/fe-events-numeric.c
@@ -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);
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c
index 3435cb85..cdce5bd1 100644
--- a/src/fe-text/gui-windows.c
+++ b/src/fe-text/gui-windows.c
@@ -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;
diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c
index b1096359..c66a02d2 100644
--- a/src/irc/flood/flood.c
+++ b/src/irc/flood/flood.c
@@ -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);