From 19978f221fab1257c6cf4015a89ccc86a0c39e78 Mon Sep 17 00:00:00 2001 From: elvis Date: Sun, 24 Apr 2022 13:20:34 +0200 Subject: [PATCH] fix? --- Makefile | 2 +- lib/api/api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 543caf5..b223871 100644 --- a/Makefile +++ b/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 diff --git a/lib/api/api.c b/lib/api/api.c index f9d9dd7..7cf539d 100644 --- a/lib/api/api.c +++ b/lib/api/api.c @@ -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;