diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 20:10:25 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 20:10:25 +0000 |
commit | 26e7f9195005deda91eea83f368c0d53ec95856c (patch) | |
tree | dfac803d97563ae5d8e116efa19dae10cd72ad18 /hcid/parser.y | |
parent | ddeb6ab85924294cbeb6c64321cadef508c347aa (diff) |
More use of the generic logging functions
Diffstat (limited to 'hcid/parser.y')
-rw-r--r-- | hcid/parser.y | 5 |
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; } |