aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2017-01-04 16:56:09 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-01-04 16:59:38 -0600
commit92325b44ba58a7ca04d88ae8ca202b402b032b43 (patch)
treea3434b36db337a98123f3c51389952ac669752ef
parentDrop the use of the _BSD_SOURCE macro on Linux (diff)
downloadopenrc-92325b44ba58a7ca04d88ae8ca202b402b032b43.zip
openrc-92325b44ba58a7ca04d88ae8ca202b402b032b43.tar.gz
openrc-92325b44ba58a7ca04d88ae8ca202b402b032b43.tar.bz2
Indentation fixes
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
-rw-r--r--src/rc/start-stop-daemon.c24
-rw-r--r--src/rc/supervise-daemon.c2
2 files changed, 13 insertions, 13 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 188169f..eb5b4f7 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -468,7 +468,7 @@ run_stop_schedule(const char *exec, const char *const *argv,
if (tkilled == 0) {
if (progressed)
printf("\n");
- eerror("%s: no matching processes found", applet);
+ eerror("%s: no matching processes found", applet);
}
return tkilled;
}
@@ -696,17 +696,17 @@ int main(int argc, char **argv)
if (sscanf(tmp, "%d", &nicelevel) != 1)
eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)",
applet, tmp);
- if ((tmp = getenv("SSD_IONICELEVEL"))) {
- int n = sscanf(tmp, "%d:%d", &ionicec, &ioniced);
- if (n != 1 && n != 2)
- eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)",
- applet, tmp);
- if (ionicec == 0)
- ioniced = 0;
- else if (ionicec == 3)
- ioniced = 7;
- ionicec <<= 13; /* class shift */
- }
+ if ((tmp = getenv("SSD_IONICELEVEL"))) {
+ int n = sscanf(tmp, "%d:%d", &ionicec, &ioniced);
+ if (n != 1 && n != 2)
+ eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)",
+ applet, tmp);
+ if (ionicec == 0)
+ ioniced = 0;
+ else if (ionicec == 3)
+ ioniced = 7;
+ ionicec <<= 13; /* class shift */
+ }
/* Get our user name and initial dir */
p = getenv("USER");
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c
index c1ef169..a47e47d 100644
--- a/src/rc/supervise-daemon.c
+++ b/src/rc/supervise-daemon.c
@@ -662,7 +662,7 @@ int main(int argc, char **argv)
fp = fopen(pidfile, "w");
if (! fp)
eerrorx("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
- fclose(fp);
+ fclose(fp);
child_pid = fork();
if (child_pid == -1)