summaryrefslogtreecommitdiff
path: root/app/bin/lprintf.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-05-27 14:58:02 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-05-27 14:58:02 +0200
commit359b557176b9bb2ff1aed2082641eed39c358d0d (patch)
treef6c2baca2e6a5d06b7bf32e48e475a6b7b1ea262 /app/bin/lprintf.c
parent9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (diff)
New upstream version 5.1.2aupstream/5.1.2a
Diffstat (limited to 'app/bin/lprintf.c')
-rw-r--r--app/bin/lprintf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/bin/lprintf.c b/app/bin/lprintf.c
index 217d904..23cc44a 100644
--- a/app/bin/lprintf.c
+++ b/app/bin/lprintf.c
@@ -56,15 +56,13 @@ static long logLineNumber;
static void LogInit( void )
{
- int inx;
+ int inx=0;
if ( logTable_da.cnt != 0 )
return;
- DYNARR_SET( logTable_t, logTable_da, 11 );
- for ( inx=0; inx<=10; inx++ ) {
- logTable(inx).name = "";
- logTable(inx).level = inx;
- }
+ DYNARR_APPEND( logTable_t, logTable_da,10);
+ logTable(inx).name = "";
+ logTable(inx).level = 0;
}
EXPORT void LogOpen( char * filename )
@@ -118,6 +116,7 @@ EXPORT void LogSet( char * name, int level )
logTable(logTable_da.cnt-1).level = level;
}
+
EXPORT int LogFindIndex( char * name )
{
int inx;