]> git.ipfire.org Git - thirdparty/collectd.git/commit
plugin.c: -Wpendantic cast fixes for callback handling 4243/head
authorEero Tamminen <eero.t.tamminen@intel.com>
Fri, 26 Jan 2024 17:51:20 +0000 (19:51 +0200)
committerEero Tamminen <eero.t.tamminen@intel.com>
Fri, 26 Jan 2024 18:01:00 +0000 (20:01 +0200)
commitd9d5025a064584380a5e4dacfe2c56220a06668d
tree9d3f99d3e689697a9748d4578499b465563792d9
parentb3f02f4bdecebfd9f38f2f65d2cd4158beb48258
plugin.c: -Wpendantic cast fixes for callback handling

Remove void* _data_ pointer casts with correct function pointer types
and casts.  In some cases this allowed dropping the cast completely,
as I used same type for "cf_callback" member as the simplest init()
and shutdown() callbacks.

Only remaining pedantic warning is unfixable, as dlsym() API returns
void* data pointer, instead of function pointer.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
src/daemon/plugin.c