chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integer and buffer overflows: introduce safe_malloc_ary
[secnet.git]
/
conffile.y
diff --git
a/conffile.y
b/conffile.y
index cd53b7cf88f349d919e9fc0c18af69e46479bd5a..1625122fe762f4a83831eda9c9b3ad55bfd3201b 100644
(file)
--- a/
conffile.y
+++ b/
conffile.y
@@
-10,6
+10,7
@@
#include <string.h>
#include "secnet.h"
#include "conffile_internal.h"
#include <string.h>
#include "secnet.h"
#include "conffile_internal.h"
+#include "conffile.yy.h"
#include "util.h"
#define YYERROR_VERBOSE
#include "util.h"
#define YYERROR_VERBOSE
@@
-17,7
+18,7
@@
static struct p_node *node(uint32_t type, struct p_node *l, struct p_node *r);
static struct p_node *result;
static struct p_node *result;
-static void yyerror(char *s);
+static void yyerror(c
onst c
har *s);
%}
%}
@@
-73,7
+74,7
@@
item: TOK_STRING
%%
%%
-static void yyerror(char *s)
+static void yyerror(c
onst c
har *s)
{
Message(M_FATAL,"config file %s line %d: %s\n",config_file,
config_lineno,s);
{
Message(M_FATAL,"config file %s line %d: %s\n",config_file,
config_lineno,s);