aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_wire.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/libserver/fuzzy_wire.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/libserver/fuzzy_wire.h')
-rw-r--r--src/libserver/fuzzy_wire.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h
index c2f93b8dc..40ca66c97 100644
--- a/src/libserver/fuzzy_wire.h
+++ b/src/libserver/fuzzy_wire.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Vsevolod Stakhov
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,8 +58,8 @@ RSPAMD_PACKED(rspamd_fuzzy_cmd)
guint8 cmd;
guint8 shingles_count;
guint8 flag;
- gint32 value;
- guint32 tag;
+ int32_t value;
+ uint32_t tag;
gchar digest[rspamd_cryptobox_HASHBYTES];
};
@@ -71,9 +71,9 @@ RSPAMD_PACKED(rspamd_fuzzy_shingle_cmd)
RSPAMD_PACKED(rspamd_fuzzy_reply_v1)
{
- gint32 value;
- guint32 flag;
- guint32 tag;
+ int32_t value;
+ uint32_t flag;
+ uint32_t tag;
float prob;
};
@@ -81,7 +81,7 @@ RSPAMD_PACKED(rspamd_fuzzy_reply)
{
struct rspamd_fuzzy_reply_v1 v1;
gchar digest[rspamd_cryptobox_HASHBYTES];
- guint32 ts;
+ uint32_t ts;
guchar reserved[12];
};
@@ -135,12 +135,12 @@ struct rspamd_fuzzy_cmd_extension {
struct rspamd_fuzzy_stat_entry {
const gchar *name;
- guint64 fuzzy_cnt;
+ uint64_t fuzzy_cnt;
};
RSPAMD_PACKED(fuzzy_peer_cmd)
{
- gint32 is_shingle;
+ int32_t is_shingle;
union {
struct rspamd_fuzzy_cmd normal;
struct rspamd_fuzzy_shingle_cmd shingle;