summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-05-01 14:59:17 -0400
committerJune McEnroe <programble@gmail.com>2017-05-01 14:59:17 -0400
commit810c6fe543c155a9964b075d7937a76b012c441b (patch)
tree576a67af39b6f5c3a1f3c67f02481676e5c817a8
parentUse EX_OK in pbcopy (diff)
downloadsrc-810c6fe543c155a9964b075d7937a76b012c441b.tar.gz
src-810c6fe543c155a9964b075d7937a76b012c441b.zip
Clean up style in pbd
-rwxr-xr-x.bin/pbd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/.bin/pbd.c b/.bin/pbd.c
index b01f80c3..e7b61d12 100755
--- a/.bin/pbd.c
+++ b/.bin/pbd.c
@@ -23,8 +23,9 @@ static void spawn(const char *cmd, int childFd, int parentFd) {
         pid_t wait = waitpid(pid, &status, 0);
         if (wait < 0) err(EX_OSERR, "waitpid");
 
-        if (status)
+        if (status) {
             warnx("child %s status %d", cmd, status);
+        }
     } else {
         int fd = dup2(parentFd, childFd);
         if (fd < 0) err(EX_OSERR, "dup2");
@@ -62,7 +63,9 @@ int main() {
         ssize_t peek = recv(client, &p, 1, MSG_PEEK);
         if (peek < 0) err(EX_IOERR, "recv");
 
-        if (peek) spawn("pbcopy", STDIN_FILENO, client);
+        if (peek) {
+            spawn("pbcopy", STDIN_FILENO, client);
+        }
 
         error = close(client);
         if (error) err(EX_IOERR, "close");
src/commit/bin/text.l?id=d5727a5964c859359c0b6e4fcf5b4e91ec8f4569&follow=1'>Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe