summaryrefslogtreecommitdiff
path: root/accel-pppd/logs/log_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/logs/log_file.c')
-rw-r--r--accel-pppd/logs/log_file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/logs/log_file.c b/accel-pppd/logs/log_file.c
index 6eafd420..216ff5ad 100644
--- a/accel-pppd/logs/log_file.c
+++ b/accel-pppd/logs/log_file.c
@@ -31,8 +31,8 @@ struct log_file_t {
struct list_head entry;
struct list_head msgs;
spinlock_t lock;
- int need_free:1;
- int queued:1;
+ unsigned int need_free:1;
+ unsigned int queued:1;
struct log_file_pd_t *lpd;
int fd;
@@ -669,6 +669,7 @@ static void init(void)
memset(log_file, 0, sizeof(*log_file));
log_file_init(log_file);
if (log_file_open(log_file, opt)) {
+ log_emerg("log_file:init:log_file_open: failed\n");
free(log_file);
_exit(EXIT_FAILURE);
}
@@ -680,6 +681,7 @@ static void init(void)
memset(fail_log_file, 0, sizeof(*fail_log_file));
log_file_init(fail_log_file);
if (log_file_open(fail_log_file, opt)) {
+ log_emerg("log_file:init:log_file_open: failed\n");
free(fail_log_file);
_exit(EXIT_FAILURE);
}