diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:13:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:13:39 +0000 |
commit | 7fcf40d88893e07a26cde8d266a18f0ac6b30ccd (patch) | |
tree | 5fa86fc2f146b7f108c847aabd6377cc0bd01deb /src/libutil | |
parent | 59d6fe4f5787005f48bfd9fe32d5b85e763312b4 (diff) | |
download | rspamd-7fcf40d88893e07a26cde8d266a18f0ac6b30ccd.tar.gz rspamd-7fcf40d88893e07a26cde8d266a18f0ac6b30ccd.zip |
Use port when calculating listen socket hash.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/addr.c | 7 | ||||
-rw-r--r-- | src/libutil/addr.h | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index e115072b1..38e5ac4fa 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -960,10 +960,11 @@ rspamd_inet_address_compare (const rspamd_inet_addr_t *a1, } gint -rspamd_inet_address_compare_ptr (const gpointer a1, - const gpointer a2) +rspamd_inet_address_compare_ptr (gconstpointer a1, + gconstpointer a2) { - const rspamd_inet_addr_t **i1 = a1, **i2 = a2; + const rspamd_inet_addr_t **i1 = (const rspamd_inet_addr_t **)a1, + **i2 = (const rspamd_inet_addr_t **)a2; return rspamd_inet_address_compare (*i1, *i2); } diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 1ea0ab8b5..a13c14b53 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -202,8 +202,8 @@ gint rspamd_inet_address_compare (const rspamd_inet_addr_t *a1, * @param a2 * @return */ -gint rspamd_inet_address_compare_ptr (const gpointer a1, - const gpointer a2); +gint rspamd_inet_address_compare_ptr (gconstpointer a1, + gconstpointer a2); /** * Performs deep copy of rspamd inet addr * @param addr |