commit 579b371ca52b4690b3a2e05bf4d4420212368b97
parent 80c0a5305057b7fac0249f9e487ddcffedc4b499
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Wed, 25 Aug 2021 19:16:33 -0700
Add todo items
Diffstat:
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/TODO b/TODO
@@ -0,0 +1,2 @@
+- Allow 'ok' and 'error: *' items
+- Consider quoting return items (which would fix 'ok' and 'error: *' items)
diff --git a/aps/TODO b/aps/TODO
@@ -1,3 +1 @@
- Use size_t for buffer sizes
-- Allow 'ok' and 'error: *' items
-
diff --git a/aps/find.c b/aps/find.c
@@ -17,8 +17,6 @@
*/
#include <errno.h>
-#include <limits.h>
-#include <stdlib.h>
#include <string.h>
#include "find.h"
@@ -43,9 +41,6 @@ struct item *
finddir(struct item *(*incr)(struct item *), struct item *item, struct item *end,
char **patterns, unsigned int len, unsigned int flags)
{
- long nth;
- char *ep;
-
if (flags & FIND_REVERSE)
incr = REV(incr);
if (flags & FIND_NEXT)