Code

plugin: Automatically prepend callback names with the plugin name.
[sysdb.git] / src / plugins / syslog.c
index a4875215055361dbdd950f01e74a7737654dc699..f9a285e98cd484bff8c36022a9fd427442567639 100644 (file)
@@ -89,9 +89,9 @@ sdb_module_init(sdb_plugin_info_t *info)
        sdb_plugin_set_info(info, SDB_PLUGIN_INFO_VERSION, SDB_VERSION);
        sdb_plugin_set_info(info, SDB_PLUGIN_INFO_PLUGIN_VERSION, SDB_VERSION);
 
-       sdb_plugin_register_init("syslog", sdb_syslog_init, NULL);
-       sdb_plugin_register_log("syslog", sdb_syslog_log, NULL);
-       sdb_plugin_register_shutdown("syslog", sdb_syslog_shutdown, NULL);
+       sdb_plugin_register_init("main", sdb_syslog_init, NULL);
+       sdb_plugin_register_log("main", sdb_syslog_log, NULL);
+       sdb_plugin_register_shutdown("main", sdb_syslog_shutdown, NULL);
        return 0;
 } /* sdb_module_init */