summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/en/weechat_plugin_api.en.txt2
-rw-r--r--doc/fr/weechat_plugin_api.fr.txt2
-rw-r--r--doc/it/weechat_plugin_api.it.txt2
-rw-r--r--src/core/wee-string.c2
-rw-r--r--src/core/wee-string.h2
-rw-r--r--src/plugins/weechat-plugin.h4
6 files changed, 7 insertions, 7 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index 1f19900d5..c62e39f18 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -1177,7 +1177,7 @@ Prototype:
[source,C]
----------------------------------------
-char *weechat_string_format_size (unsigned long size);
+char *weechat_string_format_size (unsigned long long size);
----------------------------------------
Arguments:
diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt
index 3241d1b50..4357c8106 100644
--- a/doc/fr/weechat_plugin_api.fr.txt
+++ b/doc/fr/weechat_plugin_api.fr.txt
@@ -1191,7 +1191,7 @@ Prototype :
[source,C]
----------------------------------------
-char *weechat_string_format_size (unsigned long size);
+char *weechat_string_format_size (unsigned long long size);
----------------------------------------
Paramètres :
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 3457f9667..6cd6627be 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -1198,7 +1198,7 @@ Prototipo:
[source,C]
----------------------------------------
-char *weechat_string_format_size (unsigned long size);
+char *weechat_string_format_size (unsigned long long size);
----------------------------------------
Argomenti:
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 026797b39..b5fad5398 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -1283,7 +1283,7 @@ string_iconv_fprintf (FILE *file, const char *data, ...)
*/
char *
-string_format_size (unsigned long size)
+string_format_size (unsigned long long size)
{
char *unit_name[] = { N_("bytes"), N_("KB"), N_("MB"), N_("GB") };
char *unit_format[] = { "%.0f", "%.1f", "%.02f", "%.02f" };
diff --git a/src/core/wee-string.h b/src/core/wee-string.h
index d0d29dc05..bb6377713 100644
--- a/src/core/wee-string.h
+++ b/src/core/wee-string.h
@@ -56,7 +56,7 @@ extern char *string_iconv_to_internal (const char *charset, const char *string);
extern char *string_iconv_from_internal (const char *charset,
const char *string);
extern int string_iconv_fprintf (FILE *file, const char *data, ...);
-extern char *string_format_size (unsigned long size);
+extern char *string_format_size (unsigned long long size);
extern void string_encode_base64 (const char *from, int length, char *to);
extern int string_decode_base64 (const char *from, char *to);
extern int string_is_command_char (const char *string);
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index c998c3b84..3e41167f1 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -45,7 +45,7 @@ struct timeval;
*/
/* API version (used to check that plugin has same API and can be loaded) */
-#define WEECHAT_PLUGIN_API_VERSION "20101109-01"
+#define WEECHAT_PLUGIN_API_VERSION "20101110-01"
/* macros for defining plugin infos */
#define WEECHAT_PLUGIN_NAME(__name) \
@@ -188,7 +188,7 @@ struct t_weechat_plugin
const char *separator);
char **(*string_split_command) (const char *command, char separator);
void (*string_free_split_command) (char **split_command);
- char *(*string_format_size) (unsigned long size);
+ char *(*string_format_size) (unsigned long long size);
char *(*string_remove_color) (const char *string, const char *replacement);
void (*string_encode_base64) (const char *from, int length, char *to);
int (*string_decode_base64) (const char *from, char *to);