]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
Add back the call to yyparse() that was accidentally dropped in the previous commit...
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index f1a7c34e7b7372d942261a8d2a84175ad9ead38e..0a23595352a1a2a27e88e3b128f2dac3bc74e157 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)
 {
@@ -261,7 +247,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);
        }