From fc476199681664f4498babba674c209147fc041c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 28 May 2023 18:10:25 -0700 Subject: *: use NULL for free() in til_setup_new() Commit 7c8086020 switched the til_setup_new() api to support NULL free_func for free(). This mechanical change pivots to that instead of the awkwardly cast free() parameters. --- src/modules/pixbounce/pixbounce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/pixbounce') diff --git a/src/modules/pixbounce/pixbounce.c b/src/modules/pixbounce/pixbounce.c index f5c2a99..80857f7 100644 --- a/src/modules/pixbounce/pixbounce.c +++ b/src/modules/pixbounce/pixbounce.c @@ -374,7 +374,7 @@ int pixbounce_setup(const til_settings_t *settings, til_setting_t **res_setting, if (res_setup) { pixbounce_setup_t *setup; - setup = til_setup_new(sizeof(*setup), (void(*)(til_setup_t *))free); + setup = til_setup_new(sizeof(*setup), NULL); if (!setup) return -ENOMEM; -- cgit v1.2.3