regex_t reg;
char buffer[MAX_STRING_LEN * 4 + 1];
- compare = regcomp(®, one->vp_strvalue,
- REG_EXTENDED);
+ compare = regcomp(®, one->vp_strvalue, REG_EXTENDED);
if (compare != 0) {
regerror(compare, ®, buffer, sizeof(buffer));
fr_strerror_printf("Illegal regular expression in attribute: %s: %s",
}
-static int do_regex(REQUEST *request, const char *lhs, const char *rhs, int iflag)
+static int do_regex(REQUEST *request, const char *lhs, const char *rhs, bool iflag)
{
int i, compare;
int cflags = REG_EXTENDED;
/*
* Include substring matches.
*/
- rcode = regcomp(®, name2 + 1,
- REG_EXTENDED | REG_NOSUB | REG_ICASE);
+ rcode = regcomp(®, name2 + 1, REG_EXTENDED | REG_NOSUB | REG_ICASE);
if (rcode != 0) {
char buffer[256];
/*
* Include substring matches.
*/
- if (regcomp(®, this->realm->name + 1,
- REG_EXTENDED | REG_NOSUB | REG_ICASE) != 0) {
+ if (regcomp(®, this->realm->name + 1, REG_EXTENDED | REG_NOSUB | REG_ICASE) != 0) {
continue;
}
/*
* Include substring matches.
*/
- compare = regcomp(®, check->vp_strvalue,
- REG_EXTENDED);
+ compare = regcomp(®, check->vp_strvalue, REG_EXTENDED);
if (compare != 0) {
char buffer[256];
regerror(compare, ®, buffer, sizeof(buffer));