aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/async_session.c
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/async_session.c
parent6b2b4167187fee09365271cca182866ecb029af3 (diff)
downloadrspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz
rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libserver/async_session.c')
-rw-r--r--src/libserver/async_session.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libserver/async_session.c b/src/libserver/async_session.c
index d12f95550..9f87ffd33 100644
--- a/src/libserver/async_session.c
+++ b/src/libserver/async_session.c
@@ -49,8 +49,8 @@ static struct rspamd_counter_data events_count;
struct rspamd_async_event {
- const gchar *subsystem;
- const gchar *event_source;
+ const char *subsystem;
+ const char *event_source;
event_finalizer_t fin;
void *user_data;
};
@@ -94,7 +94,7 @@ struct rspamd_async_session {
khash_t(rspamd_events_hash) * events;
void *user_data;
rspamd_mempool_t *pool;
- guint flags;
+ unsigned int flags;
};
static void
@@ -134,11 +134,11 @@ struct rspamd_async_event *
rspamd_session_add_event_full(struct rspamd_async_session *session,
event_finalizer_t fin,
gpointer user_data,
- const gchar *subsystem,
- const gchar *event_source)
+ const char *subsystem,
+ const char *event_source)
{
struct rspamd_async_event *new_event;
- gint ret;
+ int ret;
if (session == NULL) {
msg_err("session is NULL");
@@ -176,7 +176,7 @@ rspamd_session_add_event_full(struct rspamd_async_session *session,
void rspamd_session_remove_event_full(struct rspamd_async_session *session,
event_finalizer_t fin,
void *ud,
- const gchar *event_source)
+ const char *event_source)
{
struct rspamd_async_event search_ev, *found_ev;
khiter_t k;
@@ -335,9 +335,9 @@ rspamd_session_pending(struct rspamd_async_session *session)
return ret;
}
-guint rspamd_session_events_pending(struct rspamd_async_session *session)
+unsigned int rspamd_session_events_pending(struct rspamd_async_session *session)
{
- guint npending;
+ unsigned int npending;
g_assert(session != NULL);