This commit is contained in:
elvis
2022-04-24 13:20:34 +02:00
parent 8abcb95d82
commit 19978f221f
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CC = gcc
CFLAGS += -std=c99 -Wall -Werror -pedantic #-g
CFLAGS += -std=c99 -Wall -Werror -pedantic -ggdb3
INCDIR = ./lib/utils ./lib/ini ./lib/threadpool ./src ./lib/log ./lib/api
INCLUDES := $(patsubst %,-I %,$(INCDIR))
LDFLAGS = -L . -lm

View File

@ -1691,7 +1691,7 @@ int closeEveryFile() {
}
int createOpenedFiles(void) {
openedFiles = calloc(1, sizeof(openedFiles));
openedFiles = calloc(1, sizeof(openfiles_t));
if(!openedFiles) {
perror("calloc");
return -1;