From 310ab6d7ff9b6ca4c8c1159bdd4eafd63aaf34ba Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 22 May 2012 16:33:10 +0000 Subject: Fix world after byacc import: - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor) --- usr.sbin/jail/config.c | 2 ++ usr.sbin/jail/jailp.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/jail') diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c index 16f5095..7a7917d 100644 --- a/usr.sbin/jail/config.c +++ b/usr.sbin/jail/config.c @@ -52,6 +52,8 @@ struct ipspec { extern FILE *yyin; extern int yynerrs; +extern int yyparse(void); + struct cfjails cfjails = TAILQ_HEAD_INITIALIZER(cfjails); static void free_param(struct cfparams *pp, struct cfparam *p); diff --git a/usr.sbin/jail/jailp.h b/usr.sbin/jail/jailp.h index 4bf7929..31a2aba 100644 --- a/usr.sbin/jail/jailp.h +++ b/usr.sbin/jail/jailp.h @@ -222,7 +222,6 @@ extern void requeue(struct cfjail *j, struct cfjails *queue); extern void yyerror(const char *); extern int yylex(void); -extern int yyparse(void); extern struct cfjails cfjails; extern struct cfjails ready; -- cgit v1.1