From 5d2c2b27a6323e2666378b986129b2a7c2c39e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Feb 2022 16:04:24 +0100 Subject: New upstream version 5.2.2GA --- app/bin/lprintf.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'app/bin/lprintf.c') diff --git a/app/bin/lprintf.c b/app/bin/lprintf.c index 23cc44a..802fa24 100644 --- a/app/bin/lprintf.c +++ b/app/bin/lprintf.c @@ -20,23 +20,11 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include -#include -#include -#include -#include -#ifndef WINDOWS -#include -#else -#include -#include -#endif - #include "custom.h" #include "fileio.h" -#include "messages.h" #include "paths.h" #include "track.h" +#include "common-ui.h" /**************************************************************************** @@ -117,7 +105,7 @@ EXPORT void LogSet( char * name, int level ) } -EXPORT int LogFindIndex( char * name ) +EXPORT int LogFindIndex( const char * name ) { int inx; for ( inx=0; inx Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- app/bin/lprintf.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'app/bin/lprintf.c') diff --git a/app/bin/lprintf.c b/app/bin/lprintf.c index 802fa24..0989ec9 100644 --- a/app/bin/lprintf.c +++ b/app/bin/lprintf.c @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "custom.h" @@ -46,8 +46,9 @@ static void LogInit( void ) { int inx=0; - if ( logTable_da.cnt != 0 ) + if ( logTable_da.cnt != 0 ) { return; + } DYNARR_APPEND( logTable_t, logTable_da,10); logTable(inx).name = ""; logTable(inx).level = 0; @@ -74,14 +75,17 @@ static void LogDoOpen( void ) if ( logFileName ) { logFile = fopen( logFileName, "a" ); if ( logFile == NULL ) { - NoticeMessage( MSG_OPEN_FAIL, "Continue", NULL, "Log", logFileName, strerror(errno) ); + NoticeMessage( MSG_OPEN_FAIL, "Continue", NULL, "Log", logFileName, + strerror(errno) ); perror( logFileName ); return; } } - fprintf( logFile, "# %s Version: %s, Date: %s\n", sProdName, sVersion, ctime(&logClock) ); - if ( recordF ) + fprintf( logFile, "# %s Version: %s, Date: %s\n", sProdName, sVersion, + ctime(&logClock) ); + if ( recordF ) { fprintf( recordF, "# LOG CLOCK %s\n", ctime(&logClock) ); + } } EXPORT void LogClose( void ) @@ -90,10 +94,11 @@ EXPORT void LogClose( void ) if ( logFile ) { time(&clock); fprintf( logFile, "LOG END %s\n", ctime(&clock) ); - if ( logFile != stdout ) + if ( logFile != stdout ) { fclose( logFile ); - } - logFile = NULL; + } + } + logFile = NULL; } EXPORT void LogSet( char * name, int level ) @@ -109,22 +114,24 @@ EXPORT int LogFindIndex( const char * name ) { int inx; for ( inx=0; inx