diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-05-28 18:10:25 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-05-28 18:10:25 -0700 |
commit | fc476199681664f4498babba674c209147fc041c (patch) | |
tree | c3f6f4fdc7d757e2b27e601317509be4755a41f4 /src/modules/voronoi | |
parent | fead6a99d3fe4be0c1b654ed3f8fac10f5aff204 (diff) |
*: 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.
Diffstat (limited to 'src/modules/voronoi')
-rw-r--r-- | src/modules/voronoi/voronoi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/voronoi/voronoi.c b/src/modules/voronoi/voronoi.c index 5b86746..23ea00a 100644 --- a/src/modules/voronoi/voronoi.c +++ b/src/modules/voronoi/voronoi.c @@ -403,7 +403,7 @@ static int voronoi_setup(const til_settings_t *settings, til_setting_t **res_set if (res_setup) { voronoi_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; |