summaryrefslogtreecommitdiffstats
path: root/hcid/parser.y
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-09 20:10:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-09 20:10:25 +0000
commit26e7f9195005deda91eea83f368c0d53ec95856c (patch)
treedfac803d97563ae5d8e116efa19dae10cd72ad18 /hcid/parser.y
parentddeb6ab85924294cbeb6c64321cadef508c347aa (diff)
More use of the generic logging functions
Diffstat (limited to 'hcid/parser.y')
-rw-r--r--hcid/parser.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/parser.y b/hcid/parser.y
index 2697559f..60dd986f 100644
--- a/hcid/parser.y
+++ b/hcid/parser.y
@@ -32,7 +32,6 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <syslog.h>
#include <stdarg.h>
#include <sys/socket.h>
@@ -317,7 +316,7 @@ bool: K_YES { $$ = 1; } | K_NO { $$ = 0; };
int yyerror(char *s)
{
- syslog(LOG_ERR, "%s line %d", s, lineno);
+ error("%s line %d", s, lineno);
return 0;
}
@@ -342,7 +341,7 @@ int read_config(char *file)
extern FILE *yyin;
if (!(yyin = fopen(file, "r"))) {
- syslog(LOG_ERR,"Can not open %s", file);
+ error("Can't open config file %s", file);
return -1;
}