aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/roll_history.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
commit14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch)
tree7b1a3e41b75490fac4d45722c90a1847543c6796 /src/libserver/roll_history.h
parent6b2b4167187fee09365271cca182866ecb029af3 (diff)
downloadrspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz
rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libserver/roll_history.h')
-rw-r--r--src/libserver/roll_history.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libserver/roll_history.h b/src/libserver/roll_history.h
index 62bce7f7d..18d9ff5cd 100644
--- a/src/libserver/roll_history.h
+++ b/src/libserver/roll_history.h
@@ -38,23 +38,23 @@ struct rspamd_config;
struct roll_history_row {
ev_tstamp timestamp;
- gchar message_id[HISTORY_MAX_ID];
- gchar symbols[HISTORY_MAX_SYMBOLS];
- gchar user[HISTORY_MAX_USER];
- gchar from_addr[HISTORY_MAX_ADDR];
+ char message_id[HISTORY_MAX_ID];
+ char symbols[HISTORY_MAX_SYMBOLS];
+ char user[HISTORY_MAX_USER];
+ char from_addr[HISTORY_MAX_ADDR];
gsize len;
- gdouble scan_time;
- gdouble score;
- gdouble required_score;
- gint action;
- guint completed;
+ double scan_time;
+ double score;
+ double required_score;
+ int action;
+ unsigned int completed;
};
struct roll_history {
struct roll_history_row *rows;
gboolean disabled;
- guint nrows;
- guint cur_row;
+ unsigned int nrows;
+ unsigned int cur_row;
};
/**
@@ -63,7 +63,7 @@ struct roll_history {
* @return new structure
*/
struct roll_history *rspamd_roll_history_new(rspamd_mempool_t *pool,
- guint max_rows, struct rspamd_config *cfg);
+ unsigned int max_rows, struct rspamd_config *cfg);
/**
* Update roll history with data from task
@@ -80,7 +80,7 @@ void rspamd_roll_history_update(struct roll_history *history,
* @return TRUE if history has been loaded
*/
gboolean rspamd_roll_history_load(struct roll_history *history,
- const gchar *filename);
+ const char *filename);
/**
* Save history to file
@@ -89,7 +89,7 @@ gboolean rspamd_roll_history_load(struct roll_history *history,
* @return TRUE if history has been saved
*/
gboolean rspamd_roll_history_save(struct roll_history *history,
- const gchar *filename);
+ const char *filename);
#ifdef __cplusplus
}