struct chartable_ctx {
gint (*filter) (struct worker_task * task);
- gchar *symbol;
+ const gchar *symbol;
double threshold;
memory_pool_t *chartable_pool;
struct dkim_ctx {
gint (*filter) (struct worker_task * task);
- gchar *symbol_reject;
- gchar *symbol_tempfail;
- gchar *symbol_allow;
+ const gchar *symbol_reject;
+ const gchar *symbol_tempfail;
+ const gchar *symbol_allow;
memory_pool_t *dkim_pool;
radix_tree_t *whitelist_ip;
struct fuzzy_mapping {
guint64 fuzzy_flag;
- gchar *symbol;
+ const gchar *symbol;
double weight;
};
struct fuzzy_ctx {
gint (*filter) (struct worker_task * task);
- gchar *symbol;
+ const gchar *symbol;
struct storage_server *servers;
gint servers_num;
memory_pool_t *fuzzy_pool;
}
static void
-parse_servers_string (gchar *str)
+parse_servers_string (const gchar *str)
{
gchar **strvec;
gint i, num;
struct fuzzy_client_session *session = arg;
struct fuzzy_cmd cmd;
struct fuzzy_mapping *map;
- gchar buf[62], *err_str, *symbol;
+ gchar buf[62], *err_str;
+ const gchar *symbol;
gint value = 0, flag = 0, r;
double nval;
struct spf_ctx {
gint (*filter) (struct worker_task * task);
- gchar *symbol_fail;
- gchar *symbol_softfail;
- gchar *symbol_allow;
+ const gchar *symbol_fail;
+ const gchar *symbol_softfail;
+ const gchar *symbol_allow;
memory_pool_t *spf_pool;
radix_tree_t *whitelist_ip;