Compare commits

..

No commits in common. "1f54110aa5c350b87a251347a9a3e446b3e13f74" and "8d6d6b2870fed819a7b2ee1369579db109b288c2" have entirely different histories.

1 changed files with 2 additions and 8 deletions

View File

@ -11,7 +11,6 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifdef _WIN32
@ -25,7 +24,6 @@ int main(void) {
int taskdeadline_date = 0;
int taskpriority = 0;
int taskspare = 0;
char *taskname = NULL; // taskName Buffer
llist *listT = NULL;
llist *listE = NULL;
@ -46,7 +44,7 @@ int main(void) {
continue;
};
taskname = NULL;
char *taskname = NULL; // taskName Buffer
size_t nameLen;
size_t nnread;
switch (choice) {
@ -98,11 +96,7 @@ int main(void) {
scanf("%d", &taskspare);
// if list exists use it to generate plan
if (listT != NULL) {
struct tm lc;
localtime_r(&now, &lc);
lc.tm_hour += taskspare;
time_t avail = mktime(&lc);
listE = genPlan(listT, avail);
listE = genPlan(listT, taskspare);
write_linkedlist_to_csv(listT, dbName);
} else {
printf("list is empty!");