}
/* open history file for reading */
- history_path= lib->settings->get_str(lib->settings, "%s.history", NULL,
- lib->ns);
+ history_path = lib->settings->get_str(lib->settings, "%s.history", NULL,
+ lib->ns);
if (!history_path)
{
fprintf(stderr, "sw-collector.history path not set.\n");
h = chunk_map(history_path, FALSE);
if (!h)
{
- fprintf(stderr, "opening '%s' failed: %s", history, strerror(errno));
+ fprintf(stderr, "opening '%s' failed: %s", history_path,
+ strerror(errno));
return EXIT_FAILURE;
}
history_chunk = *h;
dpkg->destroy(dpkg);
DBG1(DBG_IMC, "migrated %d sw identifier records", count);
-
+
return status;
}