From a5627a1ce0eb65d72aba2206d7c257b85eb81908 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 10 Jan 2008 23:58:16 +0100 Subject: [PATCH] Rename variable interface to ncurses_interface as interface may be defined --- src/log.c | 4 ++-- src/log.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)));