summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-18 11:09:46 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-18 11:09:46 +0200
commitaa948c76a30cad648998fa7c70e0cf4691659de4 (patch)
tree45a500757c00c575331b03969b2639110d30d2e4 /src/gui
parent885e0d93742e647ae58964a1d2cebcaaaaccd609 (diff)
downloadweechat-aa948c76a30cad648998fa7c70e0cf4691659de4.zip
core: remove some compilation warnings under Cygwin
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c2
-rw-r--r--src/gui/gui-chat.c4
-rw-r--r--src/gui/gui-nicklist.c2
-rw-r--r--src/gui/gui-window.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 0a34f5446..5738e0594 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -627,7 +627,7 @@ gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer,
pos_end_name = string + index_string + 1;
while (pos_end_name[0])
{
- if (isalnum (pos_end_name[0])
+ if (isalnum ((unsigned char)pos_end_name[0])
&& (pos_end_name[0] != '_')
&& (pos_end_name[0] != '$'))
pos_end_name++;
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index 3f7b2c123..973aee7df 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -355,7 +355,7 @@ gui_chat_get_time_string (time_t date)
i = 0;
while (text_time[i])
{
- if (isdigit (text_time[i]))
+ if (isdigit ((unsigned char)text_time[i]))
{
if (time_first_digit == -1)
time_first_digit = i;
@@ -393,7 +393,7 @@ gui_chat_get_time_string (time_t date)
}
else
{
- if (isdigit (text_time[i]))
+ if (isdigit ((unsigned char)text_time[i]))
{
if (last_color != GUI_COLOR_CHAT_TIME)
{
diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c
index ce3c332aa..a9a1eff2f 100644
--- a/src/gui/gui-nicklist.c
+++ b/src/gui/gui-nicklist.c
@@ -615,7 +615,7 @@ gui_nicklist_get_group_start (const char *name)
const char *ptr_name;
ptr_name = name;
- while (isdigit (ptr_name[0]))
+ while (isdigit ((unsigned char)ptr_name[0]))
{
if (ptr_name[0] == '|')
break;
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c
index f16597d34..5d0c0eb14 100644
--- a/src/gui/gui-window.c
+++ b/src/gui/gui-window.c
@@ -1048,7 +1048,7 @@ gui_window_scroll (struct t_gui_window *window, char *scroll)
/* search number and letter */
pos = scroll;
- while (pos && pos[0] && isdigit (pos[0]))
+ while (pos && pos[0] && isdigit ((unsigned char)pos[0]))
{
pos++;
}
@@ -1275,7 +1275,7 @@ gui_window_scroll_horiz (struct t_gui_window *window, char *scroll)
/* search number and percentage */
pos = scroll;
- while (pos && pos[0] && isdigit (pos[0]))
+ while (pos && pos[0] && isdigit ((unsigned char)pos[0]))
{
pos++;
}