forked from collectd/collectd
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
1 changed file
with
35 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters