Subject: [PATCH 02/11] dtc: move declaration of yyerror

From: Milton Miller <[email-masked]>
Date: Sat, 7 Jul 2007 01:18:47 -0500 (CDT)

yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move
the declaration to srcpos.h.

Signed-off-by: Milton Miller <[email-masked]>
--- 
eliminates implicit declaration warning.

Index: dtc/dtc-parser.y
===================================================================
--- dtc.orig/dtc-parser.y	2007-06-14 23:16:18.000000000 -0500
+++ dtc/dtc-parser.y	2007-06-14 23:16:25.000000000 -0500
@@ -26,7 +26,6 @@
 #include "srcpos.h"
 
 int yylex(void);
-void yyerror(char const *);
 cell_t cell_from_string(char *s, unsigned int base);
 
 extern struct boot_info *the_boot_info;
Index: dtc/srcpos.h
===================================================================
--- dtc.orig/srcpos.h	2007-06-14 23:16:18.000000000 -0500
+++ dtc/srcpos.h	2007-06-14 23:16:25.000000000 -0500
@@ -62,6 +62,7 @@ typedef struct YYLTYPE {

+extern void yyerror(char const *);
 
 extern int srcpos_filenum;