commit c3841c6767f0a2860420de1163b6cf41923cd29f from: Omar Polo via: Thomas Adam date: Fri Nov 18 17:24:19 2022 UTC forward-declare conf_new_access_rule not all yacc implementations put the section in the same order: with OpenBSD' yacc it's fine, with GNU' bison it results in a warning about using an undeclared function conf_new_access_rule. extracted from -portable via thomas, ok stsp@ commit - 6df5d941837b8287bf5964087c890b24e86bf673 commit + c3841c6767f0a2860420de1163b6cf41923cd29f blob - 2bd91742070fd73d80ed7d3448adb42cd33a10c9 blob + 4fd5767663f9fecdb247c6ed37f3865d7bb9a480 --- gotd/parse.y +++ gotd/parse.y @@ -86,6 +86,8 @@ static int errors; static struct gotd *gotd; static struct gotd_repo *new_repo; static struct gotd_repo *conf_new_repo(const char *); +static void conf_new_access_rule(struct gotd_repo *, + enum gotd_access, int, char *); static enum gotd_procid gotd_proc_id; typedef struct {