Go to the documentation of this file.
54 h = malloc(
sizeof *h);
56 ERRPRINTF(
"Error allocating load history structure.\n");
60 h->
load_path = LOCALSTATEDIR
"/loadhistory";
97 ERRPRINTF(
"Error allocating load history memory.\n");
124 DBGPRINTF(
"h:%p\n", h);
125 DBGPRINTF(
"h->end_i: %d\n", h->
end_i);
163 LOGPRINTF(
"Error, loadhistory size is less than 1.\n");
167 LOGPRINTF(
"Error, loadhistory internal variable is corrupted.\n");
171 LOGPRINTF(
"Error, load history array is not allocated\n.");
175 LOGPRINTF(
"Error, load history write to disk period is negative.\n");
179 LOGPRINTF(
"Error, no history file specified.\n");
194 l = malloc(
sizeof *l);
214 SWITCHPRINTF(output,
"history:%p size: %d start_i:%d end_i:%d\n",
219 while(i != h->
end_i) {
244 free((*h)->load_path);
245 (*h)->load_path = NULL;
248 (*h)->history = NULL;