summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-quote-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/skaembutils/s6-quote-filter.c')
-rw-r--r--src/skaembutils/s6-quote-filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skaembutils/s6-quote-filter.c b/src/skaembutils/s6-quote-filter.c
index 3308f22..2e26011 100644
--- a/src/skaembutils/s6-quote-filter.c
+++ b/src/skaembutils/s6-quote-filter.c
@@ -1,6 +1,6 @@
/* ISC license. */
-#include <sys/types.h>
+#include <string.h>
#include <errno.h>
#include <skalibs/sgetopt.h>
#include <skalibs/strerr2.h>
@@ -22,7 +22,7 @@ int main (int argc, char const *const *argv)
subgetopt_t l = SUBGETOPT_ZERO ;
for (;;)
{
- register int opt = subgetopt_r(argc, argv, "ud:", &l) ;
+ int opt = subgetopt_r(argc, argv, "ud:", &l) ;
if (opt == -1) break ;
switch (opt)
{
@@ -33,7 +33,7 @@ int main (int argc, char const *const *argv)
}
argc -= l.ind ; argv += l.ind ;
}
- delimlen = str_len(delim) ;
+ delimlen = strlen(delim) ;
if (startquote)
{
if(!delimlen) strerr_dief1x(100, "no character to quote with!") ;