Permalink
Browse files

Fix warnings from byacc import.

  • Loading branch information...
1 parent a7e375d commit 52e9aa73cf3364e912d7cc4bd5c662f17d48674c Peter Avalos committed Jan 19, 2013
View
@@ -61,7 +61,6 @@ quad_t to_integer (struct val *);
void to_string (struct val *);
int yyerror (const char *);
int yylex (void);
-int yyparse (void);
char **av;
%}
View
@@ -57,8 +57,6 @@ extern struct termios tty_start, tty_new;
extern DISPLACEMENT displacement[MAXDIR];
-extern int yyparse(void);
-
/* graphics.c */
extern void done_screen(void);
extern void draw_all(void);
View
@@ -49,6 +49,7 @@
#include "pathnames.h"
extern FILE *yyin;
+extern int yyparse(void);
static int read_file(const char *);
static const char *default_game(void);
static const char *okay_game(const char *);
View
@@ -58,7 +58,7 @@
#include "dma.h"
-
+extern int yyparse(void);
static void deliver(struct qitem *);
struct aliases aliases = LIST_HEAD_INITIALIZER(aliases);
View
@@ -164,7 +164,6 @@ extern char neterr[ERRMSG_SIZE];
extern char errmsg[ERRMSG_SIZE];
/* aliases_parse.y */
-int yyparse(void);
extern FILE *yyin;
/* conf.c */
View
@@ -30,9 +30,9 @@
* $DragonFly: src/sbin/devd/parse.y,v 1.1 2008/10/03 00:26:21 hasso Exp $
*/
-#include "devd.h"
#include <stdio.h>
#include <string.h>
+#include "devd.h"
%}
View
@@ -44,6 +44,7 @@
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
View
@@ -43,7 +43,6 @@
extern FILE *yyin;
void yyerror(const char *fmt, ...) __printflike(1, 2);
-int yyparse(void);
int yylex(void);
static void usage(void);
static void collate_print_tables(void);
View
@@ -63,7 +63,6 @@
#define yylex getdate_yylex
#define yyerror getdate_yyerror
-static int yyparse(void);
static int yylex(void);
static int yyerror(const char *);
View
@@ -30,7 +30,6 @@
extern int yylex(void);
extern int yyerror(const char *);
-extern int yyparse(void);
%}
%token NUMBER
%token ERROR
@@ -35,5 +35,4 @@ typedef struct {
extern int aline_number;
extern int debug;
-int yyparse(void);
int yyerror(const char *);
View
@@ -28,7 +28,6 @@
extern int aline_number;
-int yyparse(void);
int yyerror(const char *);
struct named_csid {
View
@@ -73,7 +73,6 @@ void *xmalloc(unsigned int sz);
uint32_t *xlalloc(unsigned int sz);
uint32_t *xrelalloc(uint32_t *old, unsigned int sz);
void dump_tables(void);
-int yyparse(void);
extern int yylex(void);
%}
View
@@ -38,12 +38,12 @@
#include <limits.h>
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include "bthcid.h"
- int yyparse (void);
int yylex (void);
static void free_key (link_key_p key);
View
@@ -150,7 +150,6 @@ char *raisestr(char *);
void moveifchanged(const char *, const char *);
void init_dev(struct device *);
void newbus_ioconf(void);
-int yyparse(void);
void options(void);
void makefile(void);
void headers(void);
View
@@ -67,6 +67,7 @@ static int no_config_clobber = TRUE;
int debugging;
int profiling;
+extern int yyparse(void);
static void configfile(void);
static void get_srcdir(void);
static void usage(void);
@@ -23,7 +23,6 @@ static char * next_word(void);
static int yylex(void);
static u_int32 valid_if(char *s);
static struct ifreq * ifconfaddr(struct ifconf *ifcp, u_int32 a);
-int yyparse(void);
static FILE *f;
@@ -39,7 +39,6 @@
#include "inf.h"
-extern int yyparse (void);
extern int yylex (void);
extern void yyerror(const char *);
%}
View
@@ -87,7 +87,6 @@ static struct file {
struct file *pushfile(const char *, int);
int popfile(void);
int check_file_secrecy(int, const char *);
-int yyparse(void);
int yylex(void);
int yyerror(const char *, ...) __printflike(1, 2);
int kw_cmp(const void *, const void *);
View
@@ -46,6 +46,7 @@
#include <string.h>
#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <netdb.h>
#include <ctype.h>
#include <errno.h>

0 comments on commit 52e9aa7

Please sign in to comment.