Simplified log_spacer() code

This commit is contained in:
Clifford Wolf 2016-12-23 02:06:46 +01:00
parent a0dff87a57
commit 33a22f8768
1 changed files with 2 additions and 6 deletions

View File

@ -289,12 +289,8 @@ void log_cmd_error(const char *format, ...)
void log_spacer()
{
while (log_newline_count < 2) {
int old_log_newline_count = log_newline_count;
log("\n");
if (old_log_newline_count >= log_newline_count)
break;
}
if (log_newline_count < 2) log("\n");
if (log_newline_count < 2) log("\n");
}
void log_push()