fix?
This commit is contained in:
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user