X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=conffile.y;h=1625122fe762f4a83831eda9c9b3ad55bfd3201b;hp=b6b246c91fbb2dfa09adde21cd3723dcfb26d772;hb=59938e0ed0c8ac267c3715a25a0a3ed27f7a7e47;hpb=2fe58dfd10216a37f1ece081f926971882de112e diff --git a/conffile.y b/conffile.y index b6b246c..1625122 100644 --- a/conffile.y +++ b/conffile.y @@ -10,6 +10,7 @@ #include #include "secnet.h" #include "conffile_internal.h" +#include "conffile.yy.h" #include "util.h" #define YYERROR_VERBOSE @@ -17,13 +18,13 @@ static struct p_node *node(uint32_t type, struct p_node *l, struct p_node *r); static struct p_node *result; -static void yyerror(char *s); +static void yyerror(const char *s); %} %% -input: assignments { result = $1; } +input: assignments { result = $1; $$=result; } ; assignments: assignments assignment { $$=node(T_ALIST, $2, $1); } @@ -73,7 +74,7 @@ item: TOK_STRING %% -static void yyerror(char *s) +static void yyerror(const char *s) { Message(M_FATAL,"config file %s line %d: %s\n",config_file, config_lineno,s);