Rename variable interface to ncurses_interface as interface may be defined

This commit is contained in:
Christophe Grenier 2008-01-10 23:58:16 +01:00
parent c898c644fa
commit a5627a1ce0
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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)));