1.3.4, syntax error in conf_yacc.y
2004-05-27 by Cyril Guibourg
I just download the tarball and fail to compile under FreeBSD:
bison -y -p`echo conf_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'` conf_yacc.y
conf_yacc.y:142.8: parse error, unexpected ":", expecting ";" or "|"
*** Error code 1
Fix:
Two semi-colon are missing in the grammar description.
--- conf_yacc.y.orig Wed May 26 23:50:12 2004
+++ conf_yacc.y Thu May 27 16:47:57 2004
@@ -139,8 +139,10 @@
dumpfreq: DUMPFREQ TDELAY { conf.c_dumpfreq =
(time_t)humanized_atoi($2);
}
+ ;
timeout: TIMEOUT TDELAY { conf.c_timeout =
(time_t)humanized_atoi($2);
}
+ ;
%%
#include "conf_lex.c"