diff --git a/src/log.c b/src/log.c index daad12c2..628d65cf 100644 --- a/src/log.c +++ b/src/log.c @@ -52,7 +52,7 @@ int log_set_levels(const unsigned int levels) return old_levels; } -int log_open(const char*default_filename, const int mode, const int interface, const char *prog_name, int argc, char**argv) +int log_open(const char*default_filename, const int mode, const int ncurses_interface, const char *prog_name, int argc, char**argv) { const char*filename=default_filename; if(mode!=TD_LOG_CREATE && mode!=TD_LOG_APPEND) @@ -62,7 +62,7 @@ int log_open(const char*default_filename, const int mode, const int interface, c log_handle=fopen(filename,(mode==TD_LOG_CREATE?"w":"a")); if(log_handle==NULL) { - if(interface==0) + if(ncurses_interface==0) { printf("Can't create %s file\n", default_filename); return mode; diff --git a/src/log.h b/src/log.h index 1ae2d183..ae1789b5 100644 --- a/src/log.h +++ b/src/log.h @@ -22,7 +22,7 @@ #ifndef _LOG_H #define _LOG_H int log_set_levels(const unsigned int levels); -int log_open(const char*default_filename, const int mode, const int interface, const char *prog_name, int argc, char**argv); +int log_open(const char*default_filename, const int mode, const int ncurses_interface, const char *prog_name, int argc, char**argv); int log_flush(void); int log_close(void); int log_redirect(unsigned int level, const char *format, ...) __attribute__((format(printf, 2, 3)));