]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
as a result of the env rework, arraylen() is only used in parse.y. move it there...
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index 7757f49659969ab979367449feac2398f90a1cb0..6c1b14d3f36b234c2d37c22479a8af226c43118d 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -55,20 +55,6 @@ usage(void)
        exit(1);
 }
 
-size_t
-arraylen(const char **arr)
-{
-       size_t cnt = 0;
-
-       if (arr) {
-               while (*arr) {
-                       cnt++;
-                       arr++;
-               }
-       }
-       return cnt;
-}
-
 static int
 parseuid(const char *s, uid_t *uid)
 {
@@ -174,7 +160,6 @@ static void
 parseconfig(const char *filename, int checkperms)
 {
        extern FILE *yyfp;
-       extern int yyparse(void);
        struct stat sb;
 
        yyfp = fopen(filename, "r");