X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=4405985646fdf24d27e3ea25367e32965cb47ee7;hb=58ae91b5cc5b27b5317f26c238556f12dbb62258;hp=ea31b3022bea5d45f609276699faf37594379a91;hpb=de0fdb208de123fe753c5fcf03533833777a5b4a;p=collectd.git diff --git a/src/exec.c b/src/exec.c index ea31b302..44059856 100644 --- a/src/exec.c +++ b/src/exec.c @@ -23,6 +23,8 @@ * Peter Holik **/ +#define _BSD_SOURCE /* For setgroups */ + #include "collectd.h" #include "common.h" #include "plugin.h" @@ -777,7 +779,8 @@ static int exec_read (void) /* {{{ */ return (0); } /* int exec_read }}} */ -static int exec_notification (const notification_t *n) +static int exec_notification (const notification_t *n, + user_data_t __attribute__((unused)) *user_data) { program_list_t *pl; program_list_and_notification_t *pln; @@ -817,7 +820,7 @@ static int exec_notification (const notification_t *n) } /* for (pl) */ return (0); -} /* int exec_notification */ +} /* }}} int exec_notification */ static int exec_shutdown (void) /* {{{ */ { @@ -850,7 +853,8 @@ void module_register (void) plugin_register_complex_config ("exec", exec_config); plugin_register_init ("exec", exec_init); plugin_register_read ("exec", exec_read); - plugin_register_notification ("exec", exec_notification); + plugin_register_notification ("exec", exec_notification, + /* user_data = */ NULL); plugin_register_shutdown ("exec", exec_shutdown); } /* void module_register */