Commit ecacfefa authored by Tollef Fog Heen's avatar Tollef Fog Heen

Fix type for grabbing size of a regex

The size of a regex is a size_t.  Spotted by gcc 4.6
parent c316746d
......@@ -292,7 +292,8 @@ static int
ban_parse_regexp(struct cli *cli, const struct ban *b, const char *a3)
{
const char *error;
int erroroffset, rc, sz;
int erroroffset, rc;
size_t sz;
pcre *re;
re = pcre_compile(a3, 0, &error, &erroroffset, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment