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)
{
parseconfig(const char *filename, int checkperms)
{
extern FILE *yyfp;
+ extern int yyparse(void);
struct stat sb;
yyfp = fopen(filename, "r");
errx(1, "%s is not owned by root", filename);
}
- yyparse();
fclose(yyfp);
if (parse_errors)
exit(1);