aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bind-gram.y4
-rw-r--r--src/dhcpd-gram.y4
-rw-r--r--src/grecs-gram.y4
-rw-r--r--src/meta1-gram.y4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/bind-gram.y b/src/bind-gram.y
index df7f9cf..2cca1ed 100644
--- a/src/bind-gram.y
+++ b/src/bind-gram.y
@@ -27,7 +27,7 @@
#include <errno.h>
int yylex(void);
-int yyerror(char *s);
+int yyerror(char const *s);
static struct grecs_node *parse_tree;
extern int yy_flex_debug;
@@ -244,7 +244,7 @@ ctllist : value
%%
int
-yyerror(char *s)
+yyerror(char const *s)
{
grecs_error(&yylloc, 0, "%s", s);
return 0;
diff --git a/src/dhcpd-gram.y b/src/dhcpd-gram.y
index eed9b99..de5fe01 100644
--- a/src/dhcpd-gram.y
+++ b/src/dhcpd-gram.y
@@ -27,7 +27,7 @@
#include <errno.h>
int yylex(void);
-int yyerror(char *s);
+int yyerror(char const *s);
static struct grecs_node *parse_tree;
extern int yy_flex_debug;
@@ -225,7 +225,7 @@ strlist : DHCPD_STRING ',' DHCPD_STRING
%%
int
-yyerror(char *s)
+yyerror(char const *s)
{
grecs_error(&yylloc, 0, "%s", s);
return 0;
diff --git a/src/grecs-gram.y b/src/grecs-gram.y
index dc772e0..9b61487 100644
--- a/src/grecs-gram.y
+++ b/src/grecs-gram.y
@@ -27,7 +27,7 @@
#include <errno.h>
int yylex(void);
-int yyerror(char *s);
+int yyerror(char const *s);
static struct grecs_node *parse_tree;
%}
@@ -243,7 +243,7 @@ opt_sc : /* empty */
%%
int
-yyerror(char *s)
+yyerror(char const *s)
{
grecs_error(&yylloc, 0, "%s", s);
return 0;
diff --git a/src/meta1-gram.y b/src/meta1-gram.y
index d39e46c..d9d94d6 100644
--- a/src/meta1-gram.y
+++ b/src/meta1-gram.y
@@ -24,7 +24,7 @@
#include "grecs-locus.h"
int yylex(void);
-int yyerror(char *s);
+int yyerror(char const *s);
static struct grecs_node *parse_tree;
extern int yy_flex_debug;
@@ -191,7 +191,7 @@ opt_sc : /* empty */
%%
int
-yyerror(char *s)
+yyerror(char const *s)
{
grecs_error(&yylloc, 0, "%s", s);
return 0;

Return to:

Send suggestions and report system problems to the System administrator.