diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include <string.h> #include <syslog.h> #include "config.h" +#include "macros.h" char *read_file(const char *filename, long *size) { /* Open the file. */ @@ -153,7 +154,7 @@ config *parse_config(const char *filename) { if (opt->offset == offsetof(config, port)) { const int port = strtol(val.str, NULL, 0); if (port <= 0 || port > 65535) { - syslog(LOG_ERR, "Invalid port %d. (Valid port must be between 1, and 65535.)", port); + log(LOG_ERR, "Invalid port %d. (Valid port must be between 1, and 65535.)", port); cleanup_config(cfg); free(line); free(buf); |