diff --git a/addnote.c b/addnote.c index 986ba5d..a29a07a 100644 --- a/addnote.c +++ b/addnote.c @@ -155,7 +155,6 @@ int main(int argc, char *argv[]) { category = argv[i + 1]; i += 2; } else { - /* This is the message */ message = argv[i]; i++; break; /* Only take first non-option as message */ diff --git a/dumpnotes.c b/dumpnotes.c index 387c494..f0ac9cd 100644 --- a/dumpnotes.c +++ b/dumpnotes.c @@ -172,7 +172,7 @@ int get_cnotes_path(char *buffer, size_t bufsize) { } /* start with a simple cat of the file */ -main(int argc, char *argv[]) { +int main(int argc, char *argv[]) { FILE *notesfile; char file_path[600]; Entry entries[MAX_ENTRIES];