Fix 64bit build
authorKarsten Keil <kkeil@suse.de>
Mon, 1 Sep 2008 20:23:01 +0000 (22:23 +0200)
committerKarsten Keil <kkeil@suse.de>
Mon, 1 Sep 2008 20:23:01 +0000 (22:23 +0200)
route.c

diff --git a/route.c b/route.c
index 743e37d..bb2ed1f 100644 (file)
--- a/route.c
+++ b/route.c
@@ -2137,9 +2137,9 @@ struct route_action *EndpointAppPBX::route(struct route_ruleset *ruleset)
 
                                case MATCH_FREE:
                                case MATCH_NOTFREE:
-                               if (!(comp_len = (unsigned int)strchr(cond->string_value, ':')))
+                               if (!(comp_len = (unsigned long)strchr(cond->string_value, ':')))
                                        break;
-                               comp_len = comp_len-(unsigned int)cond->string_value;
+                               comp_len = comp_len-(unsigned long)cond->string_value;
                                avail = 0;
                                mISDNport = mISDNport_first;
                                while(mISDNport)