From a1e40e9beb621dbe342515ee0380c67837112a61 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Apr 2009 16:45:18 +0100 Subject: Fix parens --- src/rc/rc-update.c | 2 +- src/rc/runscript.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rc/rc-update.c b/src/rc/rc-update.c index 6b31ba10..7314f313 100644 --- a/src/rc/rc-update.c +++ b/src/rc/rc-update.c @@ -210,7 +210,7 @@ rc_update(int argc, char **argv) runlevels = rc_stringlist_new(); if (optind >= argc) { - if (! action & DOSHOW) + if (!(action & DOSHOW)) eerrorx("%s: no service specified", applet); } else { service = argv[optind]; diff --git a/src/rc/runscript.c b/src/rc/runscript.c index c2688ee0..5dab6763 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -586,8 +586,7 @@ svc_start(bool deps) state = rc_service_state(service); if (rc_yesno(getenv("IN_HOTPLUG")) || in_background) { - if (! state & RC_SERVICE_INACTIVE && - ! state & RC_SERVICE_STOPPED) + if (!(state & (RC_SERVICE_INACTIVE | RC_SERVICE_STOPPED))) exit(EXIT_FAILURE); background = true; rc_service_mark(service, RC_SERVICE_HOTPLUGGED); -- cgit v1.2.3