diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 21:45:49 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:24 +0100 |
commit | fbeab26a3510680a5ad1753bf554b70b9a78a336 (patch) | |
tree | 9930db9909e86ae01c20ab06aba7b803018a3652 /src/core/wee-infolist.c | |
parent | c07cf691adb4740759e9fd128a2f6702c912d70f (diff) | |
download | weechat-fbeab26a3510680a5ad1753bf554b70b9a78a336.zip |
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)
Diffstat (limited to 'src/core/wee-infolist.c')
-rw-r--r-- | src/core/wee-infolist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/wee-infolist.c b/src/core/wee-infolist.c index 9ae9d35a5..b8bdf8764 100644 --- a/src/core/wee-infolist.c +++ b/src/core/wee-infolist.c @@ -366,7 +366,7 @@ infolist_search_var (struct t_infolist *infolist, const char *name) for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, name) == 0) + if (strcmp (ptr_var->name, name) == 0) return ptr_var; } @@ -447,7 +447,7 @@ infolist_integer (struct t_infolist *infolist, const char *var) for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, var) == 0) + if (strcmp (ptr_var->name, var) == 0) { if (ptr_var->type == INFOLIST_INTEGER) return *((int *)ptr_var->value); @@ -475,7 +475,7 @@ infolist_string (struct t_infolist *infolist, const char *var) for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, var) == 0) + if (strcmp (ptr_var->name, var) == 0) { if (ptr_var->type == INFOLIST_STRING) return (char *)ptr_var->value; @@ -503,7 +503,7 @@ infolist_pointer (struct t_infolist *infolist, const char *var) for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, var) == 0) + if (strcmp (ptr_var->name, var) == 0) { if (ptr_var->type == INFOLIST_POINTER) return ptr_var->value; @@ -534,7 +534,7 @@ infolist_buffer (struct t_infolist *infolist, const char *var, for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, var) == 0) + if (strcmp (ptr_var->name, var) == 0) { if (ptr_var->type == INFOLIST_BUFFER) { @@ -565,7 +565,7 @@ infolist_time (struct t_infolist *infolist, const char *var) for (ptr_var = infolist->ptr_item->vars; ptr_var; ptr_var = ptr_var->next_var) { - if (string_strcmp (ptr_var->name, var) == 0) + if (strcmp (ptr_var->name, var) == 0) { if (ptr_var->type == INFOLIST_TIME) return *((time_t *)ptr_var->value); |