From 7880a25feff912daec10daf959a015a1f1fa4d86 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 12 Oct 2025 20:32:58 +0100 Subject: [PATCH] cleanup and prep for continued work --- addnote.c | 1 - dumpnotes.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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];