summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-10-01 22:21:25 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-10-01 22:21:25 +0200
commit8abd05fe3d1b5acb611d66b98bce5dc3f8002d9f (patch)
tree61d2d2e2af4d68a20577043e8500f2de6f64c26a /src/core
parentb7f3ba69e12c7bb38523e30aaf4a8e46a4de853f (diff)
downloadweechat-8abd05fe3d1b5acb611d66b98bce5dc3f8002d9f.zip
core: replace "long unsigned int" by "unsigned long"
Diffstat (limited to 'src/core')
-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
5 files changed, 10 insertions, 10 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,