projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add likely/unlikely macros.
[apps/pfixtools.git]
/
postlicyd
/
iplist.c
diff --git
a/postlicyd/iplist.c
b/postlicyd/iplist.c
index
5337dca
..
a1f49eb
100644
(file)
--- a/
postlicyd/iplist.c
+++ b/
postlicyd/iplist.c
@@
-299,7
+299,7
@@
static bool rbl_filter_constructor(filter_t *filter)
lock = false;
} else {
PARSE_CHECK(false, "illegal locking state %.*s",
lock = false;
} else {
PARSE_CHECK(false, "illegal locking state %.*s",
-
p - current
, current);
+
(int)(p - current)
, current);
}
break;
}
break;
@@
-307,7
+307,7
@@
static bool rbl_filter_constructor(filter_t *filter)
weight = strtol(current, &next, 10);
PARSE_CHECK(next == p && weight >= 0 && weight <= 1024,
"illegal weight value %.*s",
weight = strtol(current, &next, 10);
PARSE_CHECK(next == p && weight >= 0 && weight <= 1024,
"illegal weight value %.*s",
- (p - current), current);
+ (
int)(
p - current), current);
break;
case 2:
break;
case 2:
@@
-342,7
+342,7
@@
static bool rbl_filter_constructor(filter_t *filter)
weight = strtol(current, &next, 10);
PARSE_CHECK(next == p && weight >= 0 && weight <= 1024,
"illegal weight value %.*s",
weight = strtol(current, &next, 10);
PARSE_CHECK(next == p && weight >= 0 && weight <= 1024,
"illegal weight value %.*s",
- (p - current), current);
+ (
int)(
p - current), current);
break;
case 1:
break;
case 1: