This makes gcc happy in bullseye.
}
int auth_request_var_expand_with_table(string_t *dest, const char *str,
- const struct auth_request *auth_request ATTR_UNUSED,
+ const struct auth_request *auth_request,
const struct var_expand_table *table ATTR_UNUSED,
auth_request_escape_func_t *escape_func ATTR_UNUSED,
const char **error_r ATTR_UNUSED)
{ .key = "userdb", .func = mock_get_userdb },
VAR_EXPAND_TABLE_END
},
+ .event = auth_request->event,
};
return var_expand(dest, str, ¶ms, error_r);
}
"context2",
VAR_EXPAND_CONTEXTS_END
},
+ .event = NULL,
};
run_var_expand_tests(¶ms, tests, N_ELEMENTS(tests));
"test2",
VAR_EXPAND_CONTEXTS_END
},
+ .event = NULL,
};
test_begin("var_expand(value func_arr)");
{ .key = "test", .value = "value" },
VAR_EXPAND_TABLE_END
},
+ .event = NULL,
+
};
run_var_expand_tests(¶ms, tests, N_ELEMENTS(tests));
{ .key = "test", .value = "tset" },
VAR_EXPAND_TABLE_END
},
+ .event = NULL,
};
const struct test_case {
{ .key = "pid", .value = dec2str(pid) },
VAR_EXPAND_TABLE_END
},
+ .event = l->service->event,
};
str_truncate(path, 0);
{ .key = "guid", .value = guid },
VAR_EXPAND_TABLE_END
},
+ .event = client->event,
};
const char *error;
{ .key = "value", .value = value },
VAR_EXPAND_TABLE_END
},
+ .event = NULL,
};
string_t *str = t_str_new(128);
if (var_expand(str, group_by->discrete_modifier, ¶ms, &error) < 0) {
{ .key ="value", .value = "" },
VAR_EXPAND_TABLE_END
},
+ .event = NULL,
};
const char *error;
string_t *str = t_str_new(128);