X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;h=ace9dc6f090e1a98a8bc3a0d4d08a25b39f6f21b;hb=8eb9e6285f394569d7fe6ad43a0f4e5f9bca454f;hp=a21bef18e180a3c63c1bf6966effc77f26a0518b;hpb=69faa36263df439329148ed30b877b41ec6a6d93;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index a21bef18..ace9dc6f 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -68,7 +68,8 @@ static int sl_config (const char *key, const char *value) return (0); } /* int sl_config */ -static void sl_log (int severity, const char *msg) +static void sl_log (int severity, const char *msg, + user_data_t __attribute__((unused)) *user_data) { if (severity > log_level) return; @@ -88,6 +89,6 @@ void module_register (void) openlog ("collectd", LOG_CONS | LOG_PID, LOG_DAEMON); plugin_register_config ("syslog", sl_config, config_keys, config_keys_num); - plugin_register_log ("syslog", sl_log); + plugin_register_log ("syslog", sl_log, /* user_data = */ NULL); plugin_register_shutdown ("syslog", sl_shutdown); } /* void module_register(void) */