Browse Source

- updated to bison 1.75 syntax (POSIX compatible)

Andrei Pelinescu-Onciul 23 years ago
parent
commit
ca6ef89b50
1 changed files with 4 additions and 4 deletions
  1. 4 4
      cfg.y

+ 4 - 4
cfg.y

@@ -151,9 +151,9 @@ struct id_list* lst_tmp;
 
 
 /*non-terminals */
-%type <expr> exp, exp_elem /*, condition*/
-%type <action> action, actions, cmd, if_cmd, stm
-%type <ipaddr> ipv4, ipv6, ip
+%type <expr> exp exp_elem /*, condition*/
+%type <action> action actions cmd if_cmd stm
+%type <ipaddr> ipv4 ipv6 ip
 %type <ipnet> ipnet
 %type <strval> host
 %type <strval> listen_id
@@ -582,7 +582,7 @@ host:	ID				{ $$=$1; }
 						  	$$[strlen($1)+1+strlen($3)]=0;
 						  }
 						  free($1); free($3);
-						};
+						}
 	| host DOT error { $$=0; free($1); yyerror("invalid hostname"); }
 	;