aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.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/rc/rc-misc.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/rc/rc-misc.c')
-rw-r--r--src/rc/rc-misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index a252a6c0..99a60fe4 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -138,7 +138,7 @@ env_config(void)
/* Ensure our PATH is prefixed with the system locations first
for a little extra security */
path = getenv("PATH");
- if (! path)
+ if (!path)
setenv("PATH", RC_PATH_PREFIX, 1);
else if (strncmp (RC_PATH_PREFIX, path, pplen) != 0) {
l = strlen(path) + pplen + 3;
@@ -152,7 +152,7 @@ env_config(void)
while ((tok = strsep(&npp, ":")))
if (strcmp(tok, token) == 0)
break;
- if (! tok)
+ if (!tok)
p += snprintf(p, l - (p - e), ":%s", token);
free (np);
}
@@ -203,7 +203,7 @@ env_config(void)
setenv("EINFO_VERBOSE", "YES", 1);
errno = 0;
- if ((! rc_conf_yesno("rc_color") && errno == 0) ||
+ if ((!rc_conf_yesno("rc_color") && errno == 0) ||
rc_conf_yesno("rc_nocolor"))
setenv("EINFO_COLOR", "NO", 1);
}
@@ -472,7 +472,7 @@ pid_t get_pid(const char *applet,const char *pidfile)
FILE *fp;
pid_t pid;
- if (! pidfile)
+ if (!pidfile)
return -1;
if ((fp = fopen(pidfile, "r")) == NULL) {