summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-05-22 16:33:10 +0000
committerbapt <bapt@FreeBSD.org>2012-05-22 16:33:10 +0000
commit310ab6d7ff9b6ca4c8c1159bdd4eafd63aaf34ba (patch)
tree4d20581e8625e859c371cf627f8558e129ea0d06 /usr.sbin
parent3d5972e5d0c6e26393fc904ac9b0ae554e750b1f (diff)
downloadFreeBSD-src-310ab6d7ff9b6ca4c8c1159bdd4eafd63aaf34ba.zip
FreeBSD-src-310ab6d7ff9b6ca4c8c1159bdd4eafd63aaf34ba.tar.gz
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)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bluetooth/bthidd/parser.y2
-rw-r--r--usr.sbin/bluetooth/hcsecd/parser.y1
-rw-r--r--usr.sbin/config/config.h1
-rw-r--r--usr.sbin/config/main.c1
-rw-r--r--usr.sbin/fifolog/lib/getdate.y2
-rw-r--r--usr.sbin/jail/config.c2
-rw-r--r--usr.sbin/jail/jailp.h1
7 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bluetooth/bthidd/parser.y b/usr.sbin/bluetooth/bthidd/parser.y
index ca49059..50468f4 100644
--- a/usr.sbin/bluetooth/bthidd/parser.y
+++ b/usr.sbin/bluetooth/bthidd/parser.y
@@ -39,6 +39,7 @@
#include <errno.h>
#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <usbhid.h>
@@ -61,7 +62,6 @@
#include "bthid_config.h"
- int yyparse (void);
int yylex (void);
void yyerror (char const *);
static int32_t check_hid_device(hid_device_p hid_device);
diff --git a/usr.sbin/bluetooth/hcsecd/parser.y b/usr.sbin/bluetooth/hcsecd/parser.y
index 385bff2..ec91c48 100644
--- a/usr.sbin/bluetooth/hcsecd/parser.y
+++ b/usr.sbin/bluetooth/hcsecd/parser.y
@@ -36,6 +36,7 @@
#include <errno.h>
#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <syslog.h>
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;
diff --git a/usr.sbin/fifolog/lib/getdate.y b/usr.sbin/fifolog/lib/getdate.y
index 8e63e81..53a515c 100644
--- a/usr.sbin/fifolog/lib/getdate.y
+++ b/usr.sbin/fifolog/lib/getdate.y
@@ -24,11 +24,9 @@
#include "libfifolog.h"
-#define yyparse getdate_yyparse
#define yylex getdate_yylex
#define yyerror getdate_yyerror
-static int yyparse(void);
static int yylex(void);
static int yyerror(const char *);
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;
OpenPOWER on IntegriCloud