X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fbackend%2Fpuppet-storeconfigs.c;fp=src%2Fbackend%2Fpuppet-storeconfigs.c;h=4397e8760ed5c6d402cec0a5e1b796c52228041e;hp=6cc68d3f44c102952a18e102aa30bf6dca697125;hb=170488932e1d1d77971095c4edda3969ee619d07;hpb=99ba555ab2cb5e0cd9aa7bc5f90991fda14af094 diff --git a/src/backend/puppet-storeconfigs.c b/src/backend/puppet-storeconfigs.c index 6cc68d3..4397e87 100644 --- a/src/backend/puppet-storeconfigs.c +++ b/src/backend/puppet-storeconfigs.c @@ -49,7 +49,8 @@ SC_PLUGIN_MAGIC; static int sc_puppet_stcfg_get_data(sc_dbi_client_t __attribute__((unused)) *client, - size_t n, sc_data_t *data) + size_t n, sc_data_t *data, + sc_object_t __attribute__((unused)) *user_data) { sc_host_t host = SC_HOST_INIT; @@ -112,7 +113,7 @@ sc_puppet_stcfg_collect(sc_object_t *user_data) client = SC_OBJ_WRAPPER(user_data)->data; if (sc_dbi_exec_query(client, "SELECT name, updated_at FROM hosts;", - sc_puppet_stcfg_get_data, /* #columns = */ 2, + sc_puppet_stcfg_get_data, NULL, /* #columns = */ 2, /* col types = */ SC_TYPE_STRING, SC_TYPE_DATETIME)) { fprintf(stderr, "puppet storeconfigs backend: Failed to retrieve " "hosts from the storeconfigs DB.\n");