diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bluetooth/bthidd/parser.y | 2 | ||||
-rw-r--r-- | usr.sbin/bluetooth/hcsecd/parser.y | 1 | ||||
-rw-r--r-- | usr.sbin/config/config.h | 1 | ||||
-rw-r--r-- | usr.sbin/config/main.c | 1 | ||||
-rw-r--r-- | usr.sbin/fifolog/lib/getdate.y | 2 | ||||
-rw-r--r-- | usr.sbin/jail/config.c | 2 | ||||
-rw-r--r-- | usr.sbin/jail/jailp.h | 1 |
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; |