[wiki] [sites] build-page: small whitespace fixes || Hiltjo Posthuma
commit c6ae01383682a97955a883bb8afef9b8cd4e74af
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Mar 22 12:59:56 2019 +0100
build-page: small whitespace fixes
diff --git a/build-page.c b/build-page.c
index 7645edd2..b8585f88 100644
--- a/build-page.c
+++ b/build-page.c
_AT_@ -121,19 +121,19 @@ stat_isfile(const char *f)
int
spawn_wait(char **argv)
{
- int status;
+ int status;
- switch (fork()) {
+ switch (fork()) {
case 0:
execvp(argv[0], argv);
exit(126);
case -1:
return -1;
- }
+ }
if (wait(&status) == -1)
return -1;
- return WIFEXITED(status) ? 0 : -1;
+ return WIFEXITED(status) ? 0 : -1;
}
int
_AT_@ -219,8 +219,8 @@ menu_panel(char *domain, char *page, char *this, int depth)
die_perror("opendir: %s", this ? this : ".");
d_len = 0;
- while(d_len < LEN(d_list) && (de = readdir(dp)))
- d_list[d_len++] = xstrdup(de->d_name);
+ while (d_len < LEN(d_list) && (de = readdir(dp)))
+ d_list[d_len++] = xstrdup(de->d_name);
closedir(dp);
qsort(d_list, d_len, sizeof *d_list, qsort_strcmp);
Received on Fri Mar 22 2019 - 13:00:01 CET
This archive was generated by hypermail 2.3.0
: Fri Mar 22 2019 - 13:00:34 CET