diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-31 22:51:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-31 22:51:47 +0200 |
commit | 7cf939961606f079e9b097a7310e86f4e21c7535 (patch) | |
tree | ac7ac03e9c3005c49cc1eeee03c3b60914ba52b0 /src/plugins | |
parent | 68ecfb16a121fb20098a21f5ca89d7027a49e636 (diff) | |
download | weechat-7cf939961606f079e9b097a7310e86f4e21c7535.zip |
core: rename argument "length" to "bytes" in function string_strndup (header files)
Argument was already renamed in commit f8915129bf2656623168c9f17846ac29759c13ef
but it was incomplete (missing header files).
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/weechat-plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index bd0595591..5078b4de2 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -284,7 +284,7 @@ struct t_weechat_plugin char *(*iconv_from_internal) (const char *charset, const char *string); const char *(*gettext) (const char *string); const char *(*ngettext) (const char *single, const char *plural, int count); - char *(*strndup) (const char *string, int length); + char *(*strndup) (const char *string, int bytes); char *(*string_cut) (const char *string, int length, int count_suffix, int screen, const char *cut_suffix); void (*string_tolower) (char *string); @@ -1213,8 +1213,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); #define weechat_gettext(string) (weechat_plugin->gettext)(string) #define weechat_ngettext(single,plural,number) \ (weechat_plugin->ngettext)(single, plural, number) -#define weechat_strndup(__string, __length) \ - (weechat_plugin->strndup)(__string, __length) +#define weechat_strndup(__string, __bytes) \ + (weechat_plugin->strndup)(__string, __bytes) #define weechat_string_cut(__string, __length, __count_suffix, \ __screen, __cut_suffix) \ (weechat_plugin->string_cut)(__string, __length, __count_suffix, \ |