File units-1.87.diff of Package units

--- parse.y
+++ parse.y
@@ -144,6 +144,10 @@ funcunit(struct unittype *theunit, struc
   struct func *ufunc;
 }
 
+%{
+void yyerror (char *);
+int yylex(YYSTYPE *, struct commtype *);
+%}
 
 %token <number> REAL
 %token <utype> UNIT
@@ -278,7 +282,7 @@ struct {
                  "per" , DIVIDE, 
                  0, 0 };
 
-yylex(YYSTYPE *lvalp, struct commtype *comm)
+int yylex(YYSTYPE *lvalp, struct commtype *comm)
 {
   int length, count;
   struct unittype *output;
@@ -414,7 +418,7 @@ yylex(YYSTYPE *lvalp, struct commtype *c
 }
 
 
-yyerror(char *s){}
+void yyerror(char *s){}
 
 void
 freelist(int startunit)
openSUSE Build Service is sponsored by