[systemd-commits] src/unit.c

Michal Schmidt michich at kemper.freedesktop.org
Mon Nov 14 09:10:23 PST 2011


 src/unit.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 085c98af4eb17858b4687068f12eccc51a032732
Author: Thomas Jarosch <thomas.jarosch at intra2net.com>
Date:   Wed Nov 9 20:48:31 2011 +0100

    Fix same expression on both sides of '&&'
    
    The code should probably look like the statements above it.
    Please verify, I just detected it using cppcheck.
    
    Signed-off-by: Thomas Jarosch <thomas.jarosch at intra2net.com>

diff --git a/src/unit.c b/src/unit.c
index ad4063b..2a549e2 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -564,8 +564,8 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) {
             c->std_output != EXEC_OUTPUT_KMSG_AND_CONSOLE &&
             c->std_output != EXEC_OUTPUT_SYSLOG_AND_CONSOLE &&
             c->std_error != EXEC_OUTPUT_KMSG &&
-            c->std_error != EXEC_OUTPUT_SYSLOG_AND_CONSOLE &&
-            c->std_error != EXEC_OUTPUT_KMSG &&
+            c->std_error != EXEC_OUTPUT_SYSLOG &&
+            c->std_error != EXEC_OUTPUT_KMSG_AND_CONSOLE &&
             c->std_error != EXEC_OUTPUT_SYSLOG_AND_CONSOLE)
                 return 0;
 



More information about the systemd-commits mailing list