From 98908e8dce8114818ec062893f320144d7b513b3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 7 Nov 2011 21:53:16 +0000 Subject: [PATCH] removed lvl param of log_open --- src/lib/log.c | 2 +- src/lib/log.h | 2 +- src/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/log.c b/src/lib/log.c index ea2e0ff..828c737 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -30,7 +30,7 @@ static FILE *file; int log_level = LOG_WARN; -void log_open(const char *path, int lvl) +void log_open(const char *path) { file = fopen(path, "a"); diff --git a/src/lib/log.h b/src/lib/log.h index 5aaf22b..ea303b7 100644 --- a/src/lib/log.h +++ b/src/lib/log.h @@ -27,7 +27,7 @@ enum log_level { LOG_DEBUG }; -void log_open(const char *path, int lvl); +void log_open(const char *path); void log_printf(int lvl, const char *fmt, ...); diff --git a/src/main.c b/src/main.c index 6f5f321..4daa4b7 100644 --- a/src/main.c +++ b/src/main.c @@ -314,7 +314,7 @@ static void log_init() path = malloc(strlen(dir)+1+strlen("log")+1); sprintf(path, "%s/%s", dir, "log"); - log_open(path, LOG_INFO); + log_open(path); free(dir); free(path); -- 2.7.4