diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 14:56:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 14:56:16 +0000 |
commit | 6b2b4167187fee09365271cca182866ecb029af3 (patch) | |
tree | a085717bc896b25ff4280eb86abecca0d5c36767 /src/libserver/maps | |
parent | 47bcfc8360dfa1754474580e779314b8d6a78da6 (diff) | |
download | rspamd-6b2b4167187fee09365271cca182866ecb029af3.tar.gz rspamd-6b2b4167187fee09365271cca182866ecb029af3.zip |
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
Diffstat (limited to 'src/libserver/maps')
-rw-r--r-- | src/libserver/maps/map_helpers.c | 2 | ||||
-rw-r--r-- | src/libserver/maps/map_private.h | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c index 65478c567..8cb5eda78 100644 --- a/src/libserver/maps/map_helpers.c +++ b/src/libserver/maps/map_helpers.c @@ -35,7 +35,7 @@ #endif -static const guint64 map_hash_seed = 0xdeadbabeULL; +static const uint64_t map_hash_seed = 0xdeadbabeULL; static const gchar *const hash_fill = "1"; struct rspamd_map_helper_value { diff --git a/src/libserver/maps/map_private.h b/src/libserver/maps/map_private.h index b88a18e3f..458c83230 100644 --- a/src/libserver/maps/map_private.h +++ b/src/libserver/maps/map_private.h @@ -72,7 +72,7 @@ struct rspamd_http_map_cached_cbdata { struct rspamd_storage_shmem *shm; struct rspamd_map *map; struct http_map_data *data; - guint64 gen; + uint64_t gen; time_t last_checked; }; @@ -99,7 +99,7 @@ struct http_map_data { time_t last_modified; time_t last_checked; gboolean request_sent; - guint64 gen; + uint64_t gen; guint16 port; }; @@ -124,7 +124,7 @@ struct rspamd_map_backend { gboolean is_fallback; struct rspamd_map *map; struct ev_loop *event_loop; - guint32 id; + uint32_t id; struct rspamd_cryptobox_pubkey *trusted_pubkey; union rspamd_map_backend_data data; gchar *uri; @@ -146,7 +146,7 @@ struct rspamd_map { struct rspamd_worker *wrk; gchar *description; gchar *name; - guint32 id; + uint32_t id; struct map_periodic_cbdata *scheduled_check; rspamd_map_tmp_dtor tmp_dtor; gpointer tmp_dtor_data; @@ -156,7 +156,7 @@ struct rspamd_map { GDestroyNotify on_load_ud_dtor; gpointer lua_map; gsize nelts; - guint64 digest; + uint64_t digest; /* Should we check HTTP or just load cached data */ ev_tstamp timeout; gdouble poll_timeout; |