From 756bdd432b8cc91db503d239e71b1e337f9b3407 Mon Sep 17 00:00:00 2001 From: ketrptr Date: Mon, 16 Dec 2024 11:51:54 +0100 Subject: [PATCH] modified: Makefile modified: src/db.c modified: src/ui.c bugfixes --- Makefile | 4 ++-- src/db.c | 3 ++- src/ui.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c571044..d3c09a5 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,10 @@ CONFIG=src/config.h #config file #targets -debug: test ui planner db iCal config llist +debug: test ui planner db iCal llist gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut -config: $(CONFIG) +# config: $(CONFIG) llist: $(LLST) gcc -c $(CFLAGS) $(LLST) test: src/test.c diff --git a/src/db.c b/src/db.c index 5a4ce36..8e8d1ba 100644 --- a/src/db.c +++ b/src/db.c @@ -60,7 +60,8 @@ llist *write_csv_to_llist(const char *filename) { } else { char *line = NULL; // Line Buffer - size_t nnread, len; + ssize_t nnread; + size_t len; int count = 0; // task counter getline(&line, &len, file); free(line); diff --git a/src/ui.c b/src/ui.c index c68b521..8148234 100644 --- a/src/ui.c +++ b/src/ui.c @@ -48,7 +48,7 @@ int main(void) { taskname = NULL; size_t nameLen; - size_t nnread; + ssize_t nnread; switch (choice) { case 1: printf(" Geben sie das gewünschte Fach ein: \n");