projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add event to interrupt the server_loop.
[apps/pfixtools.git]
/
postlicyd
/
strlist.c
diff --git
a/postlicyd/strlist.c
b/postlicyd/strlist.c
index
c350f22
..
0c790cb
100644
(file)
--- a/
postlicyd/strlist.c
+++ b/
postlicyd/strlist.c
@@
-285,7
+285,7
@@
static bool strlist_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;
@@
-301,7
+301,7
@@
static bool strlist_filter_constructor(filter_t *filter)
reverse = false;
} else {
PARSE_CHECK(false, "illegal character order value %.*s",
reverse = false;
} else {
PARSE_CHECK(false, "illegal character order value %.*s",
-
p - current
, current);
+
(int)(p - current)
, current);
}
break;
}
break;
@@
-309,7
+309,7
@@
static bool strlist_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 3:
break;
case 3:
@@
-358,7
+358,7
@@
static bool strlist_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;
@@
-366,7
+366,7
@@
static bool strlist_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:
@@
-412,7
+412,7
@@
static bool strlist_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:
@@
-470,7
+470,7
@@
static bool strlist_filter_constructor(filter_t *filter)
CASE(RECIPIENT, recipient, email);
#undef CASE
default:
CASE(RECIPIENT, recipient, email);
#undef CASE
default:
- PARSE_CHECK(false, "unknown field %.*s",
p - current
, current);
+ PARSE_CHECK(false, "unknown field %.*s",
(int)(p - current)
, current);
break;
}
if (!*p) {
break;
}
if (!*p) {