diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
commit | 14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch) | |
tree | 7b1a3e41b75490fac4d45722c90a1847543c6796 /src/libserver/fuzzy_wire.h | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libserver/fuzzy_wire.h')
-rw-r--r-- | src/libserver/fuzzy_wire.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h index 40ca66c97..d67e38d7a 100644 --- a/src/libserver/fuzzy_wire.h +++ b/src/libserver/fuzzy_wire.h @@ -54,13 +54,13 @@ enum rspamd_fuzzy_epoch { RSPAMD_PACKED(rspamd_fuzzy_cmd) { - guint8 version; - guint8 cmd; - guint8 shingles_count; - guint8 flag; + uint8_t version; + uint8_t cmd; + uint8_t shingles_count; + uint8_t flag; int32_t value; uint32_t tag; - gchar digest[rspamd_cryptobox_HASHBYTES]; + char digest[rspamd_cryptobox_HASHBYTES]; }; RSPAMD_PACKED(rspamd_fuzzy_shingle_cmd) @@ -80,18 +80,18 @@ RSPAMD_PACKED(rspamd_fuzzy_reply_v1) RSPAMD_PACKED(rspamd_fuzzy_reply) { struct rspamd_fuzzy_reply_v1 v1; - gchar digest[rspamd_cryptobox_HASHBYTES]; + char digest[rspamd_cryptobox_HASHBYTES]; uint32_t ts; - guchar reserved[12]; + unsigned char reserved[12]; }; RSPAMD_PACKED(rspamd_fuzzy_encrypted_req_hdr) { - guchar magic[4]; - guchar key_id[RSPAMD_FUZZY_KEYLEN]; - guchar pubkey[32]; - guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES]; - guchar mac[rspamd_cryptobox_MAX_MACBYTES]; + unsigned char magic[4]; + unsigned char key_id[RSPAMD_FUZZY_KEYLEN]; + unsigned char pubkey[32]; + unsigned char nonce[rspamd_cryptobox_MAX_NONCEBYTES]; + unsigned char mac[rspamd_cryptobox_MAX_MACBYTES]; }; RSPAMD_PACKED(rspamd_fuzzy_encrypted_cmd) @@ -108,8 +108,8 @@ RSPAMD_PACKED(rspamd_fuzzy_encrypted_shingle_cmd) RSPAMD_PACKED(rspamd_fuzzy_encrypted_rep_hdr) { - guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES]; - guchar mac[rspamd_cryptobox_MAX_MACBYTES]; + unsigned char nonce[rspamd_cryptobox_MAX_NONCEBYTES]; + unsigned char mac[rspamd_cryptobox_MAX_MACBYTES]; }; RSPAMD_PACKED(rspamd_fuzzy_encrypted_reply) @@ -118,7 +118,7 @@ RSPAMD_PACKED(rspamd_fuzzy_encrypted_reply) struct rspamd_fuzzy_reply rep; }; -static const guchar fuzzy_encrypted_magic[4] = {'r', 's', 'f', 'e'}; +static const unsigned char fuzzy_encrypted_magic[4] = {'r', 's', 'f', 'e'}; enum rspamd_fuzzy_extension_type { RSPAMD_FUZZY_EXT_SOURCE_DOMAIN = 'd', @@ -128,13 +128,13 @@ enum rspamd_fuzzy_extension_type { struct rspamd_fuzzy_cmd_extension { enum rspamd_fuzzy_extension_type ext; - guint length; + unsigned int length; struct rspamd_fuzzy_cmd_extension *next; - guchar *payload; + unsigned char *payload; }; struct rspamd_fuzzy_stat_entry { - const gchar *name; + const char *name; uint64_t fuzzy_cnt; }; |