From b754a27f627ddeab57835761058ee0fd2e1cac42 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Thu, 29 Dec 2011 03:08:29 +0100 Subject: Remove useless rc_runlevel_get() call The current runlevel will be passed to rc_logger_open() already. --- src/rc/rc-logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index 8f3b218c..2b0c6be6 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -280,7 +280,7 @@ rc_logger_open(const char *level) * logfile or its basedir may be read-only during shutdown so skip * the error in this case */ - if (strcmp(rc_runlevel_get(), "shutdown") != 0) { + if (strcmp(level, "shutdown") != 0) { log_error = 1; eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno)); } -- cgit v1.2.3