aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-12-29 03:08:29 +0100
committerChristian Ruppert <idl0r@gentoo.org>2011-12-29 03:08:29 +0100
commitb754a27f627ddeab57835761058ee0fd2e1cac42 (patch)
tree177ad09f2fc156f22c00b5314941c293384914c3
parentec65f181eab6289101a0c0df624c9b022f3742d0 (diff)
Remove useless rc_runlevel_get() call
The current runlevel will be passed to rc_logger_open() already.
-rw-r--r--src/rc/rc-logger.c2
1 files changed, 1 insertions, 1 deletions
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));
}