summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-eval.c10
-rw-r--r--src/core/wee-hashtable.c2
-rw-r--r--src/core/wee-hashtable.h2
-rw-r--r--src/core/wee-hdata.c4
-rw-r--r--src/core/wee-input.c2
-rw-r--r--src/gui/gui-bar-item.c4
-rw-r--r--src/gui/gui-bar.c2
-rw-r--r--src/gui/gui-chat.c2
-rw-r--r--src/gui/gui-cursor.c6
-rw-r--r--src/gui/gui-history.c4
-rw-r--r--src/gui/gui-input.c2
-rw-r--r--src/gui/gui-key.c2
-rw-r--r--src/gui/gui-line.c2
-rw-r--r--src/gui/gui-nicklist.c2
-rw-r--r--src/plugins/aspell/weechat-aspell-info.c2
-rw-r--r--src/plugins/aspell/weechat-aspell.c2
-rw-r--r--src/plugins/buflist/buflist-bar-item.c2
-rw-r--r--src/plugins/buflist/buflist-mouse.c4
-rw-r--r--src/plugins/fset/fset-mouse.c6
-rw-r--r--src/plugins/irc/irc-bar-item.c2
-rw-r--r--src/plugins/irc/irc-info.c2
-rw-r--r--src/plugins/plugin-script.c4
-rw-r--r--src/plugins/relay/weechat/relay-weechat-msg.c4
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.c26
-rw-r--r--src/plugins/script/script-mouse.c2
-rw-r--r--src/plugins/trigger/trigger-callback.c6
26 files changed, 54 insertions, 54 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c
index 111277735..b9a092a65 100644
--- a/src/core/wee-eval.c
+++ b/src/core/wee-eval.c
@@ -156,7 +156,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
if (!path || !path[0])
{
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)pointer);
+ "0x%lx", (unsigned long)pointer);
return strdup (str_value);
}
@@ -205,7 +205,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
case WEECHAT_HDATA_POINTER:
pointer = hdata_pointer (hdata, pointer, var_name);
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)pointer);
+ "0x%lx", (unsigned long)pointer);
value = strdup (str_value);
break;
case WEECHAT_HDATA_TIME:
@@ -238,7 +238,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
case HASHTABLE_POINTER:
case HASHTABLE_BUFFER:
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)ptr_value);
+ "0x%lx", (unsigned long)ptr_value);
value = strdup (str_value);
break;
case HASHTABLE_TIME:
@@ -254,7 +254,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
else
{
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)pointer);
+ "0x%lx", (unsigned long)pointer);
value = strdup (str_value);
}
break;
@@ -324,7 +324,7 @@ eval_replace_vars_cb (void *data, const char *text)
int i, length_hide_char, length, index, rc, screen;
int count_suffix;
long number;
- long unsigned int ptr;
+ unsigned long ptr;
time_t date;
struct tm *date_tmp;
diff --git a/src/core/wee-hashtable.c b/src/core/wee-hashtable.c
index fb1244086..3c5fff844 100644
--- a/src/core/wee-hashtable.c
+++ b/src/core/wee-hashtable.c
@@ -549,7 +549,7 @@ hashtable_to_string (enum t_hashtable_type type, const void *value)
case HASHTABLE_POINTER:
case HASHTABLE_BUFFER:
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)value);
+ "0x%lx", (unsigned long)value);
return str_value;
break;
case HASHTABLE_TIME:
diff --git a/src/core/wee-hashtable.h b/src/core/wee-hashtable.h
index 27627412e..850125bb6 100644
--- a/src/core/wee-hashtable.h
+++ b/src/core/wee-hashtable.h
@@ -44,7 +44,7 @@ struct t_infolist_item;
if (__pointer) \
{ \
snprintf (str_value, sizeof (str_value), \
- "0x%lx", (long unsigned int)__pointer); \
+ "0x%lx", (unsigned long)__pointer); \
hashtable_set (hashtable, __name, str_value); \
} \
else \
diff --git a/src/core/wee-hdata.c b/src/core/wee-hdata.c
index cfb326c8c..5e12371ac 100644
--- a/src/core/wee-hdata.c
+++ b/src/core/wee-hdata.c
@@ -496,7 +496,7 @@ hdata_check_pointer_map_cb (void *data, struct t_hashtable *hashtable,
if (!ptr_list || !(ptr_list->flags & WEECHAT_HDATA_LIST_CHECK_POINTERS))
return;
- *found = (void *)((unsigned long int)hdata_check_pointer_in_list (
+ *found = (void *)((unsigned long)hdata_check_pointer_in_list (
ptr_hdata,
*((void **)(ptr_list->pointer)),
pointer));
@@ -994,7 +994,7 @@ hdata_set (struct t_hdata *hdata, void *pointer, const char *name,
struct t_hdata_var *var;
char **ptr_string, *error;
long number;
- long unsigned int ptr;
+ unsigned long ptr;
int rc;
if (!hdata->update_pending)
diff --git a/src/core/wee-input.c b/src/core/wee-input.c
index 16feb7f77..6d07b5419 100644
--- a/src/core/wee-input.c
+++ b/src/core/wee-input.c
@@ -205,7 +205,7 @@ input_data (struct t_gui_buffer *buffer, const char *data)
/* execute modifier "input_text_for_buffer" */
snprintf (str_buffer, sizeof (str_buffer),
- "0x%lx", (long unsigned int)buffer);
+ "0x%lx", (unsigned long)buffer);
new_data = hook_modifier_exec (NULL,
"input_text_for_buffer",
str_buffer,
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index e379d27a0..6bd0f032a 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -876,7 +876,7 @@ gui_bar_item_input_text_cb (const void *pointer, void *data,
/* for modifiers */
snprintf (str_buffer, sizeof (str_buffer),
- "0x%lx", (long unsigned int)buffer);
+ "0x%lx", (unsigned long)buffer);
/* execute modifier with basic string (without cursor tag) */
ptr_input = NULL;
@@ -1922,7 +1922,7 @@ gui_bar_item_focus_buffer_nicklist_cb (const void *pointer,
struct t_gui_nick_group *ptr_group;
struct t_gui_nick *ptr_nick;
int i, rc, bar_item_line;
- unsigned long int value;
+ unsigned long value;
const char *str_window, *str_buffer, *str_bar_item_line;
struct t_gui_window *window;
struct t_gui_buffer *buffer;
diff --git a/src/gui/gui-bar.c b/src/gui/gui-bar.c
index adcda616b..8b58e6be0 100644
--- a/src/gui/gui-bar.c
+++ b/src/gui/gui-bar.c
@@ -387,7 +387,7 @@ gui_bar_check_conditions (struct t_gui_bar *bar,
snprintf (str_modifier, sizeof (str_modifier),
"bar_condition_%s", bar->name);
snprintf (str_window, sizeof (str_window),
- "0x%lx", (long unsigned int)(window));
+ "0x%lx", (unsigned long)(window));
str_displayed = hook_modifier_exec (NULL,
str_modifier,
str_window,
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index 356c9855c..a766262a1 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -1112,7 +1112,7 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data,
struct t_hashtable *hashtable)
{
const char *date, *line, *prefix, *ptr_prefix, *message;
- long unsigned int value;
+ unsigned long value;
long number;
struct tm *local_time;
struct t_gui_line *ptr_line;
diff --git a/src/gui/gui-cursor.c b/src/gui/gui-cursor.c
index 5b5cf8b85..e6c73035c 100644
--- a/src/gui/gui-cursor.c
+++ b/src/gui/gui-cursor.c
@@ -125,10 +125,10 @@ gui_cursor_display_debug_info ()
"chat: %d, word: \"%s\"",
gui_color_get_custom ("yellow,red"),
focus_info->x, focus_info->y,
- (long unsigned int)focus_info->window,
- (long unsigned int)focus_info->buffer,
+ (unsigned long)focus_info->window,
+ (unsigned long)focus_info->buffer,
(focus_info->buffer) ? (focus_info->buffer)->full_name : "-",
- (long unsigned int)focus_info->bar_window,
+ (unsigned long)focus_info->bar_window,
(focus_info->bar_window) ? ((focus_info->bar_window)->bar)->name : "-",
(focus_info->bar_item) ? focus_info->bar_item : "-",
focus_info->bar_item_line,
diff --git a/src/gui/gui-history.c b/src/gui/gui-history.c
index d205fd0d5..ebd2e57ef 100644
--- a/src/gui/gui-history.c
+++ b/src/gui/gui-history.c
@@ -151,7 +151,7 @@ gui_history_add (struct t_gui_buffer *buffer, const char *string)
char *string2, str_buffer[128];
snprintf (str_buffer, sizeof (str_buffer),
- "0x%lx", (long unsigned int)(buffer));
+ "0x%lx", (unsigned long)(buffer));
string2 = hook_modifier_exec (NULL, "history_add", str_buffer, string);
/*
@@ -231,7 +231,7 @@ gui_history_hdata_history_update_cb (void *data,
struct t_gui_history *ptr_history;
struct t_gui_buffer *ptr_buffer;
const char *text, *buffer;
- long unsigned int value;
+ unsigned long value;
int rc;
/* make C compiler happy */
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index b083637ab..47c8fad04 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -159,7 +159,7 @@ gui_input_text_changed_modifier_and_signal (struct t_gui_buffer *buffer,
/* send modifier, and change input if needed */
snprintf (str_buffer, sizeof (str_buffer),
- "0x%lx", (long unsigned int)buffer);
+ "0x%lx", (unsigned long)buffer);
new_input = hook_modifier_exec (NULL,
"input_text_content",
str_buffer,
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c
index 021376c41..a3c6aadc2 100644
--- a/src/gui/gui-key.c
+++ b/src/gui/gui-key.c
@@ -1042,7 +1042,7 @@ gui_key_focus_command (const char *key, int context,
{
struct t_gui_key *ptr_key;
int i, matching, debug, rc;
- long unsigned int value;
+ unsigned long value;
char *command, **commands;
const char *str_buffer;
struct t_hashtable *hashtable;
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index 1b952b1c2..9297c522b 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -1343,7 +1343,7 @@ gui_line_hook_update (struct t_gui_line *line,
{
const char *ptr_value, *ptr_value2;
struct t_gui_buffer *ptr_buffer;
- long unsigned int value_pointer;
+ unsigned long value_pointer;
long value;
char *error;
int rc, tags_updated, notify_level_updated, highlight_updated;
diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c
index f8c35a3a9..662cda038 100644
--- a/src/gui/gui-nicklist.c
+++ b/src/gui/gui-nicklist.c
@@ -70,7 +70,7 @@ gui_nicklist_send_signal (const char *signal, struct t_gui_buffer *buffer,
{
snprintf (str_args, length,
"0x%lx,%s",
- (long unsigned int)(buffer),
+ (unsigned long)(buffer),
(arguments) ? arguments : "");
(void) hook_signal_send (signal,
WEECHAT_HOOK_SIGNAL_STRING, str_args);
diff --git a/src/plugins/aspell/weechat-aspell-info.c b/src/plugins/aspell/weechat-aspell-info.c
index 831971699..298bb90ea 100644
--- a/src/plugins/aspell/weechat-aspell-info.c
+++ b/src/plugins/aspell/weechat-aspell-info.c
@@ -37,7 +37,7 @@ weechat_aspell_info_info_aspell_dict_cb (const void *pointer, void *data,
const char *arguments)
{
int rc;
- long unsigned int value;
+ unsigned long value;
struct t_gui_buffer *buffer;
const char *buffer_full_name;
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c
index 67dfe3a18..44c453647 100644
--- a/src/plugins/aspell/weechat-aspell.c
+++ b/src/plugins/aspell/weechat-aspell.c
@@ -608,7 +608,7 @@ weechat_aspell_modifier_cb (const void *pointer, void *data,
const char *modifier,
const char *modifier_data, const char *string)
{
- long unsigned int value;
+ unsigned long value;
struct t_gui_buffer *buffer;
struct t_aspell_speller_buffer *ptr_speller_buffer;
char *result, *ptr_string, *ptr_string_orig, *pos_space;
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index 88668f6a4..b649c7cbb 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -679,7 +679,7 @@ buflist_bar_item_init ()
buflist_bar_item_buflist[i] = weechat_bar_item_new (
buflist_bar_item_get_name (i),
&buflist_bar_item_buflist_cb,
- (const void *)((long unsigned)i), NULL);
+ (const void *)((unsigned long)i), NULL);
}
return 1;
diff --git a/src/plugins/buflist/buflist-mouse.c b/src/plugins/buflist/buflist-mouse.c
index 297bf2305..c2332882c 100644
--- a/src/plugins/buflist/buflist-mouse.c
+++ b/src/plugins/buflist/buflist-mouse.c
@@ -143,7 +143,7 @@ end:
/* add pointer and plugin name */
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)ptr_buffer);
+ "0x%lx", (unsigned long)ptr_buffer);
weechat_hashtable_set (info, "pointer", str_value);
weechat_hashtable_set (info, "plugin",
weechat_buffer_get_string (ptr_buffer, "plugin"));
@@ -221,7 +221,7 @@ buflist_hsignal_cb (const void *pointer, void *data, const char *signal,
struct t_gui_buffer *ptr_buffer;
char *error, str_command[1024];
long number, number2;
- long unsigned int value;
+ unsigned long value;
int rc, current_buffer_number;
/* make C compiler happy */
diff --git a/src/plugins/fset/fset-mouse.c b/src/plugins/fset/fset-mouse.c
index 266ad75d9..e6b8e8a9d 100644
--- a/src/plugins/fset/fset-mouse.c
+++ b/src/plugins/fset/fset-mouse.c
@@ -41,7 +41,7 @@ fset_mouse_focus_cb (const void *pointer, void *data, struct t_hashtable *info)
{
const char *buffer;
int rc;
- long unsigned int value;
+ unsigned long value;
struct t_gui_buffer *ptr_buffer;
long y;
char *error, str_value[128];
@@ -80,7 +80,7 @@ fset_mouse_focus_cb (const void *pointer, void *data, struct t_hashtable *info)
return info;
snprintf (str_value, sizeof (str_value),
- "0x%lx", (long unsigned int)ptr_fset_option);
+ "0x%lx", (unsigned long)ptr_fset_option);
weechat_hashtable_set (info, "fset_option", str_value);
weechat_hashtable_set (info, "fset_option_name", ptr_fset_option->name);
weechat_hashtable_set (info, "fset_option_parent_name", ptr_fset_option->parent_name);
@@ -189,7 +189,7 @@ fset_mouse_hsignal_cb (const void *pointer, void *data, const char *signal,
const char *ptr_key, *ptr_chat_line_y, *ptr_fset_option_pointer;
char str_command[1024];
struct t_fset_option *ptr_fset_option;
- long unsigned int value;
+ unsigned long value;
int rc, distance, num_options, y, y2, chat_line_y, chat_line_y2;
int min_y, max_y, i;
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 02428b9a8..f2bb4d03f 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -552,7 +552,7 @@ struct t_hashtable *
irc_bar_item_focus_buffer_nicklist (const void *pointer, void *data,
struct t_hashtable *info)
{
- long unsigned int value;
+ unsigned long value;
int rc;
struct t_gui_buffer *buffer;
struct t_irc_nick *ptr_nick;
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index 9ba65334c..fb0d9fe11 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -55,7 +55,7 @@ irc_info_create_string_with_pointer (char **string, void *pointer)
*string = malloc (64);
if (*string)
{
- snprintf (*string, 64, "0x%lx", (long unsigned int)pointer);
+ snprintf (*string, 64, "0x%lx", (unsigned long)pointer);
}
}
}
diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c
index ba1ad2a77..09cdf81fd 100644
--- a/src/plugins/plugin-script.c
+++ b/src/plugins/plugin-script.c
@@ -346,7 +346,7 @@ plugin_script_ptr2str (void *pointer)
return str_pointer[index_pointer];
snprintf (str_pointer[index_pointer], sizeof (str_pointer[index_pointer]),
- "0x%lx", (long unsigned int)pointer);
+ "0x%lx", (unsigned long)pointer);
return str_pointer[index_pointer];
}
@@ -362,7 +362,7 @@ plugin_script_str2ptr (struct t_weechat_plugin *weechat_plugin,
const char *script_name, const char *function_name,
const char *str_pointer)
{
- long unsigned int value;
+ unsigned long value;
int rc;
struct t_gui_buffer *ptr_buffer;
diff --git a/src/plugins/relay/weechat/relay-weechat-msg.c b/src/plugins/relay/weechat/relay-weechat-msg.c
index 5352ef5e5..1c846c460 100644
--- a/src/plugins/relay/weechat/relay-weechat-msg.c
+++ b/src/plugins/relay/weechat/relay-weechat-msg.c
@@ -226,7 +226,7 @@ relay_weechat_msg_add_pointer (struct t_relay_weechat_msg *msg, void *pointer)
unsigned char length;
snprintf (str_pointer, sizeof (str_pointer),
- "%lx", (long unsigned int)pointer);
+ "%lx", (unsigned long)pointer);
length = strlen (str_pointer);
relay_weechat_msg_add_bytes (msg, &length, 1);
relay_weechat_msg_add_bytes (msg, str_pointer, length);
@@ -557,7 +557,7 @@ relay_weechat_msg_add_hdata (struct t_relay_weechat_msg *msg,
char *path_returned;
const char *hdata_name, *array_size;
void *pointer, **path_pointers;
- long unsigned int value;
+ unsigned long value;
int rc, num_keys, num_path, i, type, pos_count, count, rc_sscanf;
uint32_t count32;
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c
index 64f03fce7..62b93e09e 100644
--- a/src/plugins/relay/weechat/relay-weechat-protocol.c
+++ b/src/plugins/relay/weechat/relay-weechat-protocol.c
@@ -63,7 +63,7 @@ struct t_gui_buffer *
relay_weechat_protocol_get_buffer (const char *arg)
{
struct t_gui_buffer *ptr_buffer;
- long unsigned int value;
+ unsigned long value;
int rc;
struct t_hdata *ptr_hdata;
@@ -288,7 +288,7 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(info)
RELAY_WEECHAT_PROTOCOL_CALLBACK(infolist)
{
struct t_relay_weechat_msg *msg;
- long unsigned int value;
+ unsigned long value;
char *args;
int rc;
@@ -498,7 +498,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,short_name,"
"nicklist,title,local_variables,"
@@ -523,7 +523,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,type");
relay_weechat_msg_send (ptr_client, msg);
@@ -546,7 +546,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,"
"prev_buffer,next_buffer");
@@ -571,7 +571,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,"
"prev_buffer,next_buffer");
@@ -596,7 +596,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,"
"prev_buffer,next_buffer");
@@ -620,7 +620,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,short_name,"
"local_variables");
@@ -644,7 +644,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,title");
relay_weechat_msg_send (ptr_client, msg);
@@ -667,7 +667,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name,local_variables");
relay_weechat_msg_send (ptr_client, msg);
@@ -689,7 +689,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name");
relay_weechat_msg_send (ptr_client, msg);
@@ -729,7 +729,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
"line_data:0x%lx",
- (long unsigned int)ptr_line_data);
+ (unsigned long)ptr_line_data);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"buffer,date,date_printed,"
"displayed,highlight,tags_array,"
@@ -754,7 +754,7 @@ relay_weechat_protocol_signal_buffer_cb (const void *pointer, void *data,
if (msg)
{
snprintf (cmd_hdata, sizeof (cmd_hdata),
- "buffer:0x%lx", (long unsigned int)ptr_buffer);
+ "buffer:0x%lx", (unsigned long)ptr_buffer);
relay_weechat_msg_add_hdata (msg, cmd_hdata,
"number,full_name");
relay_weechat_msg_send (ptr_client, msg);
diff --git a/src/plugins/script/script-mouse.c b/src/plugins/script/script-mouse.c
index 8d1c6e4d4..95022b8a2 100644
--- a/src/plugins/script/script-mouse.c
+++ b/src/plugins/script/script-mouse.c
@@ -39,7 +39,7 @@ script_mouse_focus_chat_cb (const void *pointer, void *data,
{
const char *buffer;
int rc;
- long unsigned int value;
+ unsigned long value;
struct t_gui_buffer *ptr_buffer;
long x;
char *error, str_date[64];
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index ca7d95d26..818e770af 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -522,7 +522,7 @@ trigger_callback_signal_cb (const void *pointer, void *data,
if (signal_data)
{
snprintf (str_data, sizeof (str_data),
- "0x%lx", (long unsigned int)signal_data);
+ "0x%lx", (unsigned long)signal_data);
}
ptr_signal_data = str_data;
}
@@ -787,7 +787,7 @@ trigger_callback_line_cb (const void *pointer, void *data,
struct t_hashtable *hashtable;
struct t_gui_buffer *buffer;
struct t_weelist_item *ptr_item;
- long unsigned int value;
+ unsigned long value;
const char *ptr_key, *ptr_value;
char **tags, *str_tags, *string_no_color;
int rc, num_tags, length;
@@ -1130,7 +1130,7 @@ trigger_callback_focus_cb (const void *pointer, void *data,
struct t_hashtable *info)
{
const char *ptr_value;
- long unsigned int value;
+ unsigned long value;
int rc;
TRIGGER_CALLBACK_CB_INIT(info);