Indentation fixes

X-Gentoo-Bug: 604666
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
This commit is contained in:
Benda Xu 2017-01-04 16:56:09 -06:00 committed by William Hubbs
parent 074d90f5a4
commit 92325b44ba
2 changed files with 13 additions and 13 deletions

View File

@ -468,7 +468,7 @@ run_stop_schedule(const char *exec, const char *const *argv,
if (tkilled == 0) { if (tkilled == 0) {
if (progressed) if (progressed)
printf("\n"); printf("\n");
eerror("%s: no matching processes found", applet); eerror("%s: no matching processes found", applet);
} }
return tkilled; return tkilled;
} }
@ -696,17 +696,17 @@ int main(int argc, char **argv)
if (sscanf(tmp, "%d", &nicelevel) != 1) if (sscanf(tmp, "%d", &nicelevel) != 1)
eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)", eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)",
applet, tmp); applet, tmp);
if ((tmp = getenv("SSD_IONICELEVEL"))) { if ((tmp = getenv("SSD_IONICELEVEL"))) {
int n = sscanf(tmp, "%d:%d", &ionicec, &ioniced); int n = sscanf(tmp, "%d:%d", &ionicec, &ioniced);
if (n != 1 && n != 2) if (n != 1 && n != 2)
eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)", eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)",
applet, tmp); applet, tmp);
if (ionicec == 0) if (ionicec == 0)
ioniced = 0; ioniced = 0;
else if (ionicec == 3) else if (ionicec == 3)
ioniced = 7; ioniced = 7;
ionicec <<= 13; /* class shift */ ionicec <<= 13; /* class shift */
} }
/* Get our user name and initial dir */ /* Get our user name and initial dir */
p = getenv("USER"); p = getenv("USER");

View File

@ -662,7 +662,7 @@ int main(int argc, char **argv)
fp = fopen(pidfile, "w"); fp = fopen(pidfile, "w");
if (! fp) if (! fp)
eerrorx("%s: fopen `%s': %s", applet, pidfile, strerror(errno)); eerrorx("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
fclose(fp); fclose(fp);
child_pid = fork(); child_pid = fork();
if (child_pid == -1) if (child_pid == -1)