struct route_rule *rule = ruleset->rule_first;
struct route_cond *cond;
struct route_action *action = NULL;
- unsigned long comp_len;
+ unsigned int comp_len;
int j, jj;
char callerid[64], redirid[64];
int integer;
case MATCH_FREE:
case MATCH_NOTFREE:
- if (!(comp_len = (unsigned long)strchr(cond->string_value, ':')))
+ if (!(comp_len = (unsigned int)strchr(cond->string_value, ':')))
break;
- comp_len = comp_len-(unsigned long)cond->string_value;
+ comp_len = comp_len-(unsigned int)cond->string_value;
avail = 0;
mISDNport = mISDNport_first;
while(mISDNport)
match_string_prefix:
comp_len = strlen(cond->string_value); /* because we must reach value's length */
/* we must have greater or equal length to values */
- if ((unsigned long)strlen(string) < comp_len)
+ if ((unsigned int)strlen(string) < comp_len)
{
/* special case for unfinished dialing */
if (cond->match == MATCH_DIALING)