Skip to content
Snippets Groups Projects
Commit b54bd368 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: variables extension: Make modify methods of pre-defined modifiers static.

parent 97dc5366
No related branches found
No related tags found
No related merge requests found
...@@ -123,12 +123,12 @@ void ext_variables_register_core_modifiers ...@@ -123,12 +123,12 @@ void ext_variables_register_core_modifiers
/* Forward declarations */ /* Forward declarations */
bool mod_lower_modify(string_t *in, string_t **result); static bool mod_lower_modify(string_t *in, string_t **result);
bool mod_upper_modify(string_t *in, string_t **result); static bool mod_upper_modify(string_t *in, string_t **result);
bool mod_lowerfirst_modify(string_t *in, string_t **result); static bool mod_lowerfirst_modify(string_t *in, string_t **result);
bool mod_upperfirst_modify(string_t *in, string_t **result); static bool mod_upperfirst_modify(string_t *in, string_t **result);
bool mod_length_modify(string_t *in, string_t **result); static bool mod_length_modify(string_t *in, string_t **result);
bool mod_quotewildcard_modify(string_t *in, string_t **result); static bool mod_quotewildcard_modify(string_t *in, string_t **result);
/* Modifier objects */ /* Modifier objects */
...@@ -173,7 +173,7 @@ const struct sieve_variables_modifier_def length_modifier = { ...@@ -173,7 +173,7 @@ const struct sieve_variables_modifier_def length_modifier = {
/* Modifier implementations */ /* Modifier implementations */
bool mod_upperfirst_modify(string_t *in, string_t **result) static bool mod_upperfirst_modify(string_t *in, string_t **result)
{ {
char *content; char *content;
...@@ -191,7 +191,7 @@ bool mod_upperfirst_modify(string_t *in, string_t **result) ...@@ -191,7 +191,7 @@ bool mod_upperfirst_modify(string_t *in, string_t **result)
return TRUE; return TRUE;
} }
bool mod_lowerfirst_modify(string_t *in, string_t **result) static bool mod_lowerfirst_modify(string_t *in, string_t **result)
{ {
char *content; char *content;
...@@ -209,7 +209,7 @@ bool mod_lowerfirst_modify(string_t *in, string_t **result) ...@@ -209,7 +209,7 @@ bool mod_lowerfirst_modify(string_t *in, string_t **result)
return TRUE; return TRUE;
} }
bool mod_upper_modify(string_t *in, string_t **result) static bool mod_upper_modify(string_t *in, string_t **result)
{ {
char *content; char *content;
...@@ -227,7 +227,7 @@ bool mod_upper_modify(string_t *in, string_t **result) ...@@ -227,7 +227,7 @@ bool mod_upper_modify(string_t *in, string_t **result)
return TRUE; return TRUE;
} }
bool mod_lower_modify(string_t *in, string_t **result) static bool mod_lower_modify(string_t *in, string_t **result)
{ {
char *content; char *content;
...@@ -245,7 +245,7 @@ bool mod_lower_modify(string_t *in, string_t **result) ...@@ -245,7 +245,7 @@ bool mod_lower_modify(string_t *in, string_t **result)
return TRUE; return TRUE;
} }
bool mod_length_modify(string_t *in, string_t **result) static bool mod_length_modify(string_t *in, string_t **result)
{ {
*result = t_str_new(64); *result = t_str_new(64);
str_printfa(*result, "%llu", (unsigned long long) str_printfa(*result, "%llu", (unsigned long long)
...@@ -253,7 +253,7 @@ bool mod_length_modify(string_t *in, string_t **result) ...@@ -253,7 +253,7 @@ bool mod_length_modify(string_t *in, string_t **result)
return TRUE; return TRUE;
} }
bool mod_quotewildcard_modify(string_t *in, string_t **result) static bool mod_quotewildcard_modify(string_t *in, string_t **result)
{ {
unsigned int i; unsigned int i;
const char *content; const char *content;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.