diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-06-01 17:08:47 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-06-01 17:08:47 +0200 |
commit | d0b6a8a4ec298024f14f704f9e40a6f9d324ccf3 (patch) | |
tree | 8645f5abd7b89361a1c5ab67e0195c84bc2ceab0 /app/bin/lprintf.c | |
parent | c2b8ba9336499ac930802e957f0d150399f3191e (diff) | |
parent | abf57604846230dc26afe8011aefb8e7bcc34333 (diff) |
Merge debian/watchdebian/1_5.1.2a-1
Diffstat (limited to 'app/bin/lprintf.c')
-rw-r--r-- | app/bin/lprintf.c | 11 |
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; |