Code

plugin: Automatically prepend callback names with the plugin name.
[sysdb.git] / src / plugins / syslog.c
index b548988a82835be9aedac97099aeed29d7d3caf2..f9a285e98cd484bff8c36022a9fd427442567639 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "sysdb.h"
 #include "core/plugin.h"
-#include "core/error.h"
+#include "utils/error.h"
 
 #include <assert.h>
 #include <syslog.h>
@@ -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 */