commit f61637850b788d1805392e7633151c8c381327a6 (patch)
parent b88de80277d68e8d33a863976cb065029ef259ce
Author: Alex Karle <alex@alexkarle.com>
Date: Thu, 23 Dec 2021 22:42:27 -0500
Remove unused import and refactor to remove another
Optimizing for size a bit.. definitely over-optimizing at this point,
but it's fun!
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/blag.c b/blag.c
@@ -5,8 +5,6 @@
* "because markdown isn't in base!"
*/
#include <stdio.h>
-#include <stdlib.h>
-#include <err.h>
#include <unistd.h>
#include <stdbool.h>
@@ -280,7 +278,7 @@ int parse() {
int main(int argc, char *argv[]) {
if (argc > 1) {
fprintf(stderr, "error: %s takes no arguments\n", argv[0]);
- exit(1);
+ return 1;
}
#ifdef __OpenBSD__
pledge("stdio", "stdio");