aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueness <basile@opensource.dyc.edu>2015-01-21 07:12:39 -0500
committerblueness <basile@opensource.dyc.edu>2015-01-21 07:12:39 -0500
commit877de5b8ee5584091c8c10476878324a44467f73 (patch)
tree4e71b4fc28129b931cec1e18449d0b6c7a587c15
parentsrc/udev/Makefile.am: fix build wrt udev-builtin-evdev_id.c (diff)
parentRemove garbage code: first of all `r` used in compare was uninitialized (diff)
downloadeudev-877de5b8ee5584091c8c10476878324a44467f73.tar.gz
eudev-877de5b8ee5584091c8c10476878324a44467f73.tar.bz2
eudev-877de5b8ee5584091c8c10476878324a44467f73.zip
Merge pull request #99 from zaufi/master
Remove some garbage code inherited from `systemd`
-rw-r--r--src/shared/log.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index 61fe00fc3..92361b0cb 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -188,12 +188,6 @@ int log_open(void) {
getpid() == 1 ||
isatty(STDERR_FILENO) <= 0) {
- if (log_target == LOG_TARGET_AUTO)
- if (r >= 0) {
- log_close_syslog();
- log_close_console();
- return r;
- }
if (log_target == LOG_TARGET_SYSLOG_OR_KMSG ||
log_target == LOG_TARGET_SYSLOG) {
r = log_open_syslog();