fix some bugs
This commit is contained in:
parent
d8f4fe424f
commit
27cf8aeec4
@ -10,14 +10,15 @@ char mkevent(int argc, char *argv[]) {
|
||||
FILE *fp;
|
||||
|
||||
fp = fopen(NC_EVENTS_FILE, "a+");
|
||||
/* this causes issues, might readd later when I get better at C lol
|
||||
if (fp == NULL) {
|
||||
printf(TXT_BOLD COL_RED "events file does not exist\n");
|
||||
printf("ensure the events file defined in config.h exists\n" COL_RESET TXT_RESET);
|
||||
exit(1);
|
||||
}
|
||||
} */
|
||||
|
||||
if (argc < 3) {
|
||||
printf(TXT_BOLD COL_RED "not enough arguments\n" COL_RESET TXT_RESET);
|
||||
printf("usage: %c [-n] DATE EVENT_NAME\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user