diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
commit | 6b306ab8752befc28d259be55495f8249cc2df24 (patch) | |
tree | 0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/fuzzy.h | |
parent | 8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff) | |
download | rspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip |
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so
important changes would be separated from small ones.
Diffstat (limited to 'src/fuzzy.h')
-rw-r--r-- | src/fuzzy.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fuzzy.h b/src/fuzzy.h index 4895e6c53..8db2779d1 100644 --- a/src/fuzzy.h +++ b/src/fuzzy.h @@ -13,11 +13,11 @@ #define FUZZY_HASHLEN 64 typedef struct fuzzy_hash_s { - char hash_pipe[FUZZY_HASHLEN]; /**< result hash */ - uint32_t block_size; /**< current blocksize */ - uint32_t rh; /**< roll hash value */ - uint32_t h; /**< hash of block */ - uint32_t hi; /**< current index in hash pipe */ + gchar hash_pipe[FUZZY_HASHLEN]; /**< result hash */ + guint32 block_size; /**< current blocksize */ + guint32 rh; /**< roll hash value */ + guint32 h; /**< hash of block */ + guint32 hi; /**< current index in hash pipe */ } fuzzy_hash_t; /** @@ -35,9 +35,9 @@ fuzzy_hash_t * fuzzy_init_byte_array (GByteArray *in, memory_pool_t *pool); * @param h2 second hash * @return result in percents 0 - different hashes, 100 - identical hashes */ -int fuzzy_compare_hashes (fuzzy_hash_t *h1, fuzzy_hash_t *h2); +gint fuzzy_compare_hashes (fuzzy_hash_t *h1, fuzzy_hash_t *h2); -uint32_t lev_distance (char *s1, int len1, char *s2, int len2); +guint32 lev_distance (gchar *s1, gint len1, gchar *s2, gint len2); #endif |