fix compiler warnings

This commit is contained in:
2023-04-29 01:55:24 +00:00
parent 8ca1ab4384
commit 0bf7d419e0
14 changed files with 29 additions and 24 deletions

View File

@@ -8,6 +8,8 @@
#include <unistd.h>
#include <stdio.h>
#include "script.h"
int logLevel = 1;
/* Four levels of log:
@@ -25,8 +27,8 @@ FILE *logfile = NULL;
#define CONSOLE_BUF 1024*1024*5/* 5MB */
char lastlog[ERROR_BUFFER] = {'\0'};
char consolelog[CONSOLE_BUF] = {'\0'};
char lastlog[ERROR_BUFFER+1] = {'\0'};
char consolelog[CONSOLE_BUF+1] = {'\0'};
void mYughLog(int category, int priority, int line, const char *file, const char *message, ...)
{