aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool_internal.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 14:56:16 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 14:56:16 +0000
commit6b2b4167187fee09365271cca182866ecb029af3 (patch)
treea085717bc896b25ff4280eb86abecca0d5c36767 /src/libutil/mem_pool_internal.h
parent47bcfc8360dfa1754474580e779314b8d6a78da6 (diff)
downloadrspamd-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/libutil/mem_pool_internal.h')
-rw-r--r--src/libutil/mem_pool_internal.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libutil/mem_pool_internal.h b/src/libutil/mem_pool_internal.h
index 4fea83994..9fff5c7de 100644
--- a/src/libutil/mem_pool_internal.h
+++ b/src/libutil/mem_pool_internal.h
@@ -33,15 +33,15 @@ enum rspamd_mempool_chain_type {
#define ENTRY_NELTS 64
struct entry_elt {
- guint32 fragmentation;
- guint32 leftover;
+ uint32_t fragmentation;
+ uint32_t leftover;
};
struct rspamd_mempool_entry_point {
gchar src[ENTRY_LEN];
- guint32 cur_suggestion;
- guint32 cur_elts;
- guint32 cur_vars;
+ uint32_t cur_suggestion;
+ uint32_t cur_elts;
+ uint32_t cur_vars;
struct entry_elt elts[ENTRY_NELTS];
};
@@ -63,7 +63,7 @@ struct rspamd_mempool_variable {
};
KHASH_INIT(rspamd_mempool_vars_hash,
- guint32, struct rspamd_mempool_variable, 1,
+ uint32_t, struct rspamd_mempool_variable, 1,
kh_int_hash_func, kh_int_hash_equal);
struct rspamd_mempool_specific {