]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
move yyparse decl next to yyfp
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index f1a7c34e7b7372d942261a8d2a84175ad9ead38e..a4686eff792593851d065e8209a219bb32350f62 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)
 {
@@ -191,7 +177,6 @@ parseconfig(const char *filename, int checkperms)
                        errx(1, "%s is not owned by root", filename);
        }
 
-       yyparse();
        fclose(yyfp);
        if (parse_errors)
                exit(1);
@@ -261,7 +246,7 @@ authuser(char *myname, char *login_style, int persist)
        explicit_bzero(rbuf, sizeof(rbuf));
 good:
        if (fd != -1) {
-               int secs = 10 * 60;
+               int secs = 5 * 60;
                ioctl(fd, TIOCSETVERAUTH, &secs);
                close(fd);
        }