]> 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 7feaafc771af07a87ce54763b224a3c4ec0ae719..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)
 {