Skip to content
Snippets Groups Projects
Commit d6a03a94 authored by Christian Göttsche's avatar Christian Göttsche Committed by Kamil Dudka
Browse files

logrotate.c: rename struct logStates to struct logStateList

use a more distinct name in relation to struct logState

Closes #149
parent 9d534833
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -85,7 +85,7 @@ struct compData {
const char *dformat;
};
 
static struct logStates {
static struct logStateList {
LIST_HEAD(stateSet, logState) head;
} **states;
 
Loading
Loading
@@ -240,7 +240,7 @@ static int allocateHash(unsigned int hs)
message(MESS_DEBUG, "Allocating hash table for state file, size %d entries\n",
hs);
 
states = calloc(hs, sizeof(struct logStates *));
states = calloc(hs, sizeof(struct logStateList *));
if (states == NULL) {
message(MESS_ERROR, "could not allocate memory for "
"hash table\n");
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment