diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
commit | 0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch) | |
tree | db777e38f9c528127e195ad01da6a3088dc6da4a /src/expressions.c | |
parent | ae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff) | |
download | rspamd-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.c | 3 |
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) { |