#include <string.h>
#include "secnet.h"
#include "conffile_internal.h"
+#include "conffile.yy.h"
#include "util.h"
#define YYERROR_VERBOSE
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); }
%%
-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);