/*
* g_regex_match allocates `*match_info` even if it returns
* FALSE. If there's no match, we have no use for it, so free
- * it immediatly and don't return it to the caller.
+ * it immediately and don't return it to the caller.
*/
g_match_info_free(*match_info);
*match_info = NULL;
*/
static
int set_bound_from_param(struct trimmer_comp *trimmer_comp,
- const char *param_name __attribute__((unused)),
const bt_value *param,
struct trimmer_bound *bound, bool is_gmt)
{
value = bt_value_map_borrow_entry_value_const(params, "begin");
if (value) {
- if (set_bound_from_param(trimmer_comp, "begin", value,
+ if (set_bound_from_param(trimmer_comp, value,
&trimmer_comp->begin, trimmer_comp->is_gmt)) {
/* set_bound_from_param() logs errors */
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
value = bt_value_map_borrow_entry_value_const(params, "end");
if (value) {
- if (set_bound_from_param(trimmer_comp, "end", value,
+ if (set_bound_from_param(trimmer_comp, value,
&trimmer_comp->end, trimmer_comp->is_gmt)) {
/* set_bound_from_param() logs errors */
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;