aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorMatt Whitlock <gentoo@mattwhitlock.name>2021-08-16 23:21:33 -0400
committerMike Frysinger <vapier@gentoo.org>2021-12-21 01:48:04 -0500
commit8ffc4162e267cf55a8fe789792fc3568fd82ecd7 (patch)
tree1d5f72c2e85999222d536c72302a8f0eb9be49e6 /src/librc/librc.c
parent703bdbf88e60b98b1fcee8aa376932bbe75bae86 (diff)
code style: remove space after unary "not" operator
There are no semantic changes in this commit. Suggested-by: Mike Frysinger <vapier@gentoo.org> See: https://github.com/OpenRC/openrc/pull/435#pullrequestreview-727035394
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 453bd005..8fad0fa7 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -538,10 +538,10 @@ rc_service_resolve(const char *service)
/* First check started services */
snprintf(file, sizeof(file), RC_SVCDIR "/%s/%s", "started", service);
- if (lstat(file, &buf) || ! S_ISLNK(buf.st_mode)) {
+ if (lstat(file, &buf) || !S_ISLNK(buf.st_mode)) {
snprintf(file, sizeof(file), RC_SVCDIR "/%s/%s",
"inactive", service);
- if (lstat(file, &buf) || ! S_ISLNK(buf.st_mode))
+ if (lstat(file, &buf) || !S_ISLNK(buf.st_mode))
*file = '\0';
}
@@ -742,7 +742,7 @@ rc_service_mark(const char *service, const RC_SERVICE state)
s != RC_SERVICE_STOPPED &&
s != RC_SERVICE_HOTPLUGGED &&
s != RC_SERVICE_SCHEDULED) &&
- (! skip_wasinactive || s != RC_SERVICE_WASINACTIVE))
+ (!skip_wasinactive || s != RC_SERVICE_WASINACTIVE))
{
snprintf(file, sizeof(file), RC_SVCDIR "/%s/%s",
rc_service_state_names[i].name, base);
@@ -901,7 +901,7 @@ rc_service_schedule_start(const char *service, const char *service_to_start)
bool retval;
/* service may be a provided service, like net */
- if (! service || ! rc_service_exists(service_to_start))
+ if (!service || !rc_service_exists(service_to_start))
return false;
p += snprintf(file, sizeof(file), RC_SVCDIR "/scheduled/%s",
@@ -1000,7 +1000,7 @@ rc_services_in_state(RC_SERVICE state)
dirs = ls_dir(dir, 0);
list = rc_stringlist_new();
- if (! dirs)
+ if (!dirs)
return list;
TAILQ_FOREACH(d, dirs, entries) {