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/libcryptobox/keypairs_cache.c | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libcryptobox/keypairs_cache.c')
-rw-r--r-- | src/libcryptobox/keypairs_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcryptobox/keypairs_cache.c b/src/libcryptobox/keypairs_cache.c index 05712b25c..6003d9923 100644 --- a/src/libcryptobox/keypairs_cache.c +++ b/src/libcryptobox/keypairs_cache.c @@ -21,7 +21,7 @@ struct rspamd_keypair_elt { struct rspamd_cryptobox_nm *nm; - guchar pair[rspamd_cryptobox_HASHBYTES * 2]; + unsigned char pair[rspamd_cryptobox_HASHBYTES * 2]; }; struct rspamd_keypair_cache { @@ -37,7 +37,7 @@ rspamd_keypair_destroy(gpointer ptr) g_free(elt); } -static guint +static unsigned int rspamd_keypair_hash(gconstpointer ptr) { struct rspamd_keypair_elt *elt = (struct rspamd_keypair_elt *) ptr; @@ -56,7 +56,7 @@ rspamd_keypair_equal(gconstpointer p1, gconstpointer p2) } struct rspamd_keypair_cache * -rspamd_keypair_cache_new(guint max_items) +rspamd_keypair_cache_new(unsigned int max_items) { struct rspamd_keypair_cache *c; |