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/config/config.h | 1 - usr.sbin/config/main.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/config') diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index 6d66167..f275749 100644 --- a/usr.sbin/config/config.h +++ b/usr.sbin/config/config.h @@ -171,7 +171,6 @@ char *path(const char *); char *raisestr(char *); void remember(const char *); void moveifchanged(const char *, const char *); -int yyparse(void); int yylex(void); void options(void); void makefile(void); diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 28d4f8a..14061c2 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -91,6 +91,7 @@ static void usage(void); static void cleanheaders(char *); static void kernconfdump(const char *); static void checkversion(void); +extern int yyparse(void); struct hdr_list { char *h_name; -- cgit v1.1