Code

store: Let store_metric() accept non-NULL but empty metric-store.
[sysdb.git] / src / core / plugin.c
index d4bf1bd78b3dee2c1eb5e5c610e5a5bc5620dd84..20fe61cd523dfe6db6229e3996e332a13cc7ca5e 100644 (file)
@@ -107,7 +107,7 @@ static sdb_plugin_ctx_t  plugin_default_ctx  = SDB_PLUGIN_CTX_INIT;
 static sdb_plugin_info_t plugin_default_info = SDB_PLUGIN_INFO_INIT;
 
 static pthread_key_t     plugin_ctx_key;
-static _Bool             plugin_ctx_key_initialized = 0;
+static bool              plugin_ctx_key_initialized = 0;
 
 /* a list of the plugin contexts of all registered plugins */
 static sdb_llist_t      *all_plugins = NULL;
@@ -1140,7 +1140,7 @@ sdb_plugin_log(int prio, const char *msg)
        sdb_llist_iter_t *iter;
        int ret = -1;
 
-       _Bool logged = 0;
+       bool logged = 0;
 
        if (! msg)
                return 0;
@@ -1226,7 +1226,7 @@ sdb_plugin_fetch_timeseries(const char *type, const char *id,
        plugin = SDB_PLUGIN_CB(sdb_llist_search_by_name(ts_fetcher_list, type));
        if (! plugin) {
                sdb_log(SDB_LOG_ERR, "core: Cannot fetch time-series of type %s: "
-                               "no such plugin loaded");
+                               "no such plugin loaded", type);
                errno = ENOENT;
                return NULL;
        }