From d8e4baaf08ac7cfd13ec84b8ff8def70c1c3f0d1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 9 Feb 2013 19:04:46 +0100 Subject: [PATCH] acl-parser.y: fix declaration of acl_error() and acl_lex() --- acl-parser.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acl-parser.y b/acl-parser.y index 37339ca..565b8d2 100644 --- a/acl-parser.y +++ b/acl-parser.y @@ -29,8 +29,8 @@ #include "libtext/text.h" #include "petidomo.h" -static int acl_error(char *); -static int acl_lex(void); +static int acl_error(const char *); +int acl_lex(void); static int domatch(int, int, char *); static int dofilter(const char *); @@ -136,7 +136,7 @@ action: TOK_PASS { $$ = ACL_PASS; } /***** internal routines *****/ static int -acl_error(char * string) +acl_error(const char * string) { syslog(LOG_ERR, "Syntax error in line %u: %s\n", lineno, string); return 0;