chiark / gitweb /
log: remove useless variable
[elogind.git] / src / log.c
index 6caa5fad0b8c37bb6809948f9c0aab343164d287..04e90eb20f02239d45441264c07181003a6efce4 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -344,7 +344,7 @@ static int write_to_console(
         }
 
         if (highlight)
-                IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_ON);
+                IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED_ON);
         IOVEC_SET_STRING(iovec[n++], buffer);
         if (highlight)
                 IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_OFF);
@@ -625,7 +625,6 @@ void log_assert(
         const char *format, ...) {
 
         static char buffer[LINE_MAX];
-        int saved_errno = errno;
         va_list ap;
 
         va_start(ap, format);
@@ -637,9 +636,6 @@ void log_assert(
 
         log_dispatch(LOG_CRIT, file, line, func, buffer);
         abort();
-
-        /* If the user chose to ignore this SIGABRT, we are happy to go on, as if nothing happened. */
-        errno = saved_errno;
 }
 
 int log_set_target_from_string(const char *e) {