Silence some codacy errors.

This commit is contained in:
Godzil
2018-01-31 18:32:22 +00:00
parent 7e1afab7e3
commit e837f43f86
4 changed files with 22 additions and 16 deletions

View File

@@ -61,12 +61,11 @@ void time_stamp_line(void)
void log_real(int level, char *user, char *fmt, ...)
{
int i;
va_list va;
/* The LOG_PANIC must always be displayed */
if ((level <= MAX_DEBUG_LEVEL) || (level <= LOG_PANIC))
{
va_list va;
switch(level)
{
case LOG_PANIC: printf(BRED FWHITE); break;
@@ -84,6 +83,7 @@ void log_real(int level, char *user, char *fmt, ...)
if (user != NULL)
{
int i;
i = strlen(user);
if (i < 12)
{