Code

Replaced sdb_store_<type> with sdb_plugin_store_<type>.
[sysdb.git] / src / plugins / backend / mk-livestatus.c
index 599758bb7e9042ba31a9a555b6df11fad9d0b6fb..d1126db92a2e02f14835056f1d994b6c3fa2e8f5 100644 (file)
@@ -68,7 +68,7 @@ sdb_livestatus_get_host(sdb_unixsock_client_t __attribute__((unused)) *client,
        hostname  = data[0].data.string;
        timestamp = data[1].data.datetime;
 
-       status = sdb_store_host(hostname, timestamp);
+       status = sdb_plugin_store_host(hostname, timestamp);
 
        if (status < 0) {
                sdb_log(SDB_LOG_ERR, "MK Livestatus backend: Failed to "
@@ -104,7 +104,7 @@ sdb_livestatus_get_svc(sdb_unixsock_client_t __attribute__((unused)) *client,
        svcname   = data[1].data.string;
        timestamp = data[2].data.datetime;
 
-       status = sdb_store_service(hostname, svcname, timestamp);
+       status = sdb_plugin_store_service(hostname, svcname, timestamp);
 
        if (status < 0) {
                sdb_log(SDB_LOG_ERR, "MK Livestatus backend: Failed to "
@@ -327,7 +327,7 @@ sdb_module_init(sdb_plugin_info_t *info)
 
        sdb_plugin_register_config(sdb_livestatus_config);
        return 0;
-} /* sdb_version_extra */
+} /* sdb_module_init */
 
 /* vim: set tw=78 sw=4 ts=4 noexpandtab : */