summaryrefslogtreecommitdiffstats
path: root/tdmlib
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-10-29 00:09:36 +0100
committerSlávek Banko <[email protected]>2020-11-04 16:51:51 +0100
commita8ba16efbda2fff7dec11703d8dc2fde1307f344 (patch)
tree435a3f2532c69b7fe40bfbb9a9cf2034fa90d47a /tdmlib
parent3a9d7350db6866d20348ad853b22f4c47f66057c (diff)
downloadtdebase-a8ba16efbda2fff7dec11703d8dc2fde1307f344.tar.gz
tdebase-a8ba16efbda2fff7dec11703d8dc2fde1307f344.zip
Fix FTBFS due to redefine the 'log' symbol in tdmlib.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1a97a720e5b84aab02c9dfc8fe0bf504182825af)
Diffstat (limited to 'tdmlib')
-rw-r--r--tdmlib/kgreet_pam.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/tdmlib/kgreet_pam.cpp b/tdmlib/kgreet_pam.cpp
index b16dfb440..b416578ac 100644
--- a/tdmlib/kgreet_pam.cpp
+++ b/tdmlib/kgreet_pam.cpp
@@ -55,7 +55,7 @@ protected:
virtual void contextMenuEvent( TQContextMenuEvent * ) {}
};
-static FILE* log;
+static FILE *logFile;
static void kg_debug(const char* fmt, ...)
{
va_list lst;
@@ -63,8 +63,8 @@ static void kg_debug(const char* fmt, ...)
#ifdef PAM_GREETER_DEBUG
#if 0
- vfprintf(log, fmt, lst);
- fflush(log);
+ vfprintf(logFile, fmt, lst);
+ fflush(logFile);
#else
char buf[6000];
sprintf(buf, "*** %s\n", fmt);
@@ -650,9 +650,11 @@ static bool init( const TQString &,
static void done( void )
{
TDEGlobal::locale()->removeCatalogue( "kgreet_pam" );
- if (log && log != stderr)
- fclose(log);
- log = 0;
+ if (logFile && (logFile != stderr))
+ {
+ fclose(logFile);
+ }
+ logFile = 0;
}
static KGreeterPlugin *