parent
6816c4eacf
commit
756bdd432b
4
Makefile
4
Makefile
|
@ -14,10 +14,10 @@ CONFIG=src/config.h #config file
|
||||||
|
|
||||||
|
|
||||||
#targets
|
#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
|
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
|
||||||
|
|
||||||
config: $(CONFIG)
|
# config: $(CONFIG)
|
||||||
llist: $(LLST)
|
llist: $(LLST)
|
||||||
gcc -c $(CFLAGS) $(LLST)
|
gcc -c $(CFLAGS) $(LLST)
|
||||||
test: src/test.c
|
test: src/test.c
|
||||||
|
|
3
src/db.c
3
src/db.c
|
@ -60,7 +60,8 @@ llist *write_csv_to_llist(const char *filename) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
char *line = NULL; // Line Buffer
|
char *line = NULL; // Line Buffer
|
||||||
size_t nnread, len;
|
ssize_t nnread;
|
||||||
|
size_t len;
|
||||||
int count = 0; // task counter
|
int count = 0; // task counter
|
||||||
getline(&line, &len, file);
|
getline(&line, &len, file);
|
||||||
free(line);
|
free(line);
|
||||||
|
|
2
src/ui.c
2
src/ui.c
|
@ -48,7 +48,7 @@ int main(void) {
|
||||||
|
|
||||||
taskname = NULL;
|
taskname = NULL;
|
||||||
size_t nameLen;
|
size_t nameLen;
|
||||||
size_t nnread;
|
ssize_t nnread;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
case 1:
|
case 1:
|
||||||
printf(" Geben sie das gewünschte Fach ein: \n");
|
printf(" Geben sie das gewünschte Fach ein: \n");
|
||||||
|
|
Loading…
Reference in New Issue