diff options
Diffstat (limited to 'src/libserver/async_session.c')
-rw-r--r-- | src/libserver/async_session.c | 18 |
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); |