aboutsummaryrefslogtreecommitdiffstats
path: root/src/expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-31 17:17:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-31 17:17:13 +0400
commit0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch)
treedb777e38f9c528127e195ad01da6a3088dc6da4a /src/expressions.c
parentae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff)
downloadrspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.tar.gz
rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.zip
* Fix strict aliasing while compiling with optimization
* Fix tanhl detection for platforms that have not implementation of it * Remove several compile warnings
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c
index 25d950904..a8d639325 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -1306,9 +1306,10 @@ is_recipient_list_sorted (const InternetAddressList * ia)
return FALSE;
}
#ifdef GMIME24
+ num = internet_address_list_length ((InternetAddressList *)ia);
cur = ia;
for (i = 0; i < num; i ++) {
- addr = internet_address_list_get_address (cur, i);
+ addr = internet_address_list_get_address ((InternetAddressList *)cur, i);
current.addr = (char *)internet_address_get_name (addr);
if (previous.addr != NULL) {
if (g_ascii_strcasecmp (current.addr, previous.addr) < 0) {