diff --git a/libs/main.c b/libs/main.c index f0a27d5..2348009 100644 --- a/libs/main.c +++ b/libs/main.c @@ -1,10 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include - #ifndef MAX #define MAX(A, B) ((A) > (B) ? (A) : (B)) #endif diff --git a/spmenu.c b/spmenu.c index 3ff3778..efea5a0 100644 --- a/spmenu.c +++ b/spmenu.c @@ -1,17 +1,13 @@ /* spmenu - fancy dynamic menu * See LICENSE file for copyright and license details. */ -#include -#include -#include + +#include #include #include #include -#include -#include +#include #include -#include -#include #include "libs/draw/draw.h" #include "libs/main.c" @@ -653,10 +649,10 @@ void handle(void) { } int main(int argc, char *argv[]) { - readargs(argc, argv); // start by reading arguments + readargs(argc, argv); /* pledge limits what programs can do, so here we specify what spmenu should be allowed to do - * TODO: test this on a openbsd operating system + * TODO: Test this on an actual OpenBSD operating system */ #ifdef __OpenBSD__ if (pledge("stdio rpath wpath cpath", NULL) == -1) @@ -665,5 +661,5 @@ int main(int argc, char *argv[]) { handle(); - return 1; // should be unreachable + return 1; }