diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2014-08-25 19:24:56 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2014-08-25 19:24:56 +0300 |
commit | 47c39d1874abf853464d59b3a18e40015e952f39 (patch) | |
tree | 31dda1ca9fc3983a2d988f6b1a40cb1a1ccc1e32 /src | |
parent | 477701c059d73e47aa1bac97e96d801542f2bd8f (diff) | |
download | grecs-47c39d1874abf853464d59b3a18e40015e952f39.tar.gz grecs-47c39d1874abf853464d59b3a18e40015e952f39.tar.bz2 |
Minor fix
* src/bind-gram.y (yyerror): arg is char const.
* src/dhcpd-gram.y: Likewise.
* src/grecs-gram.y: Likewise.
* src/meta1-gram.y: Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/bind-gram.y | 4 | ||||
-rw-r--r-- | src/dhcpd-gram.y | 4 | ||||
-rw-r--r-- | src/grecs-gram.y | 4 | ||||
-rw-r--r-- | src/meta1-gram.y | 4 |
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 @@ | |||
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | 28 | ||
29 | int yylex(void); | 29 | int yylex(void); |
30 | int yyerror(char *s); | 30 | int yyerror(char const *s); |
31 | 31 | ||
32 | static struct grecs_node *parse_tree; | 32 | static struct grecs_node *parse_tree; |
33 | extern int yy_flex_debug; | 33 | extern int yy_flex_debug; |
@@ -244,7 +244,7 @@ ctllist : value | |||
244 | %% | 244 | %% |
245 | 245 | ||
246 | int | 246 | int |
247 | yyerror(char *s) | 247 | yyerror(char const *s) |
248 | { | 248 | { |
249 | grecs_error(&yylloc, 0, "%s", s); | 249 | grecs_error(&yylloc, 0, "%s", s); |
250 | return 0; | 250 | 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 @@ | |||
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | 28 | ||
29 | int yylex(void); | 29 | int yylex(void); |
30 | int yyerror(char *s); | 30 | int yyerror(char const *s); |
31 | 31 | ||
32 | static struct grecs_node *parse_tree; | 32 | static struct grecs_node *parse_tree; |
33 | extern int yy_flex_debug; | 33 | extern int yy_flex_debug; |
@@ -225,7 +225,7 @@ strlist : DHCPD_STRING ',' DHCPD_STRING | |||
225 | %% | 225 | %% |
226 | 226 | ||
227 | int | 227 | int |
228 | yyerror(char *s) | 228 | yyerror(char const *s) |
229 | { | 229 | { |
230 | grecs_error(&yylloc, 0, "%s", s); | 230 | grecs_error(&yylloc, 0, "%s", s); |
231 | return 0; | 231 | 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 @@ | |||
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | 28 | ||
29 | int yylex(void); | 29 | int yylex(void); |
30 | int yyerror(char *s); | 30 | int yyerror(char const *s); |
31 | 31 | ||
32 | static struct grecs_node *parse_tree; | 32 | static struct grecs_node *parse_tree; |
33 | %} | 33 | %} |
@@ -243,7 +243,7 @@ opt_sc : /* empty */ | |||
243 | %% | 243 | %% |
244 | 244 | ||
245 | int | 245 | int |
246 | yyerror(char *s) | 246 | yyerror(char const *s) |
247 | { | 247 | { |
248 | grecs_error(&yylloc, 0, "%s", s); | 248 | grecs_error(&yylloc, 0, "%s", s); |
249 | return 0; | 249 | 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 @@ | |||
24 | #include "grecs-locus.h" | 24 | #include "grecs-locus.h" |
25 | 25 | ||
26 | int yylex(void); | 26 | int yylex(void); |
27 | int yyerror(char *s); | 27 | int yyerror(char const *s); |
28 | 28 | ||
29 | static struct grecs_node *parse_tree; | 29 | static struct grecs_node *parse_tree; |
30 | extern int yy_flex_debug; | 30 | extern int yy_flex_debug; |
@@ -191,7 +191,7 @@ opt_sc : /* empty */ | |||
191 | 191 | ||
192 | %% | 192 | %% |
193 | int | 193 | int |
194 | yyerror(char *s) | 194 | yyerror(char const *s) |
195 | { | 195 | { |
196 | grecs_error(&yylloc, 0, "%s", s); | 196 | grecs_error(&yylloc, 0, "%s", s); |
197 | return 0; | 197 | return 0; |