Module: sip-router
Branch: master
Commit: 4e4e5359a16952a0a24838e1725774ea83a2dd92
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4e4e535…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Apr 30 10:21:07 2011 +0200
ratelimit: set macro to cast pointers diff to int
---
modules/ratelimit/ratelimit.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c
index 53ff559..2b34889 100644
--- a/modules/ratelimit/ratelimit.c
+++ b/modules/ratelimit/ratelimit.c
@@ -63,8 +63,8 @@ MODULE_VERSION
*/
#define RL_TIMER_INTERVAL 10
-#define RXLS(m, str, i) (m)[i].rm_eo - (m)[i].rm_so, (str) + (m)[i].rm_so
-#define RXL(m, str, i) (m)[i].rm_eo - (m)[i].rm_so
+#define RXLS(m, str, i) (int)((m)[i].rm_eo - (m)[i].rm_so), (str) + (m)[i].rm_so
+#define RXL(m, str, i) (int)((m)[i].rm_eo - (m)[i].rm_so)
#define RXS(m, str, i) (str) + (m)[i].rm_so
static inline int str_cmp(const str * a, const str * b);