summaryrefslogtreecommitdiffstats
path: root/src/libutil/shingles.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/shingles.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/shingles.h')
-rw-r--r--src/libutil/shingles.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libutil/shingles.h b/src/libutil/shingles.h
index 9a0ca697c..d0da3fc04 100644
--- a/src/libutil/shingles.h
+++ b/src/libutil/shingles.h
@@ -26,7 +26,7 @@ extern "C" {
#endif
struct rspamd_shingle {
- guint64 hashes[RSPAMD_SHINGLE_SIZE];
+ uint64_t hashes[RSPAMD_SHINGLE_SIZE];
};
enum rspamd_shingle_alg {
@@ -42,8 +42,8 @@ enum rspamd_shingle_alg {
* @param count number of hashes in the vector
* @return shingle value
*/
-typedef guint64 (*rspamd_shingles_filter)(guint64 *input, gsize count,
- gint shno, const guchar *key, gpointer ud);
+typedef uint64_t (*rspamd_shingles_filter)(uint64_t *input, gsize count,
+ gint shno, const guchar *key, gpointer ud);
/**
* Generate shingles from the input of fixed size strings using lemmatizer
@@ -91,8 +91,8 @@ gdouble rspamd_shingles_compare(const struct rspamd_shingle *a,
/**
* Default filtering function
*/
-guint64 rspamd_shingles_default_filter(guint64 *input, gsize count,
- gint shno, const guchar *key, gpointer ud);
+uint64_t rspamd_shingles_default_filter(uint64_t *input, gsize count,
+ gint shno, const guchar *key, gpointer ud);
#ifdef __cplusplus
}