chiark / gitweb /
autoconf-related updates from Ross Younger <ross@crazyscot.com>
[secnet.git] / conffile.y
index b6b246c91fbb2dfa09adde21cd3723dcfb26d772..1a8ef364a215567579bbf5fb230d0bf75b5ce0fd 100644 (file)
@@ -17,13 +17,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 +73,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);