aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-02-02 18:32:21 +0100
committerThomas Voss <thomasvoss@live.com> 2022-02-02 18:32:21 +0100
commitd36d861ffb0635563c056ffcfe8119b423714db9 (patch)
tree4d9ce53d815f178612022afaebc2f7dcbfd94478
parent60b340ce0cc726dea36fed5488c5042b2a087348 (diff)
Style fixes
-rw-r--r--mstatus.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mstatus.c b/mstatus.c
index a96044f..376c608 100644
--- a/mstatus.c
+++ b/mstatus.c
@@ -139,8 +139,7 @@ write_status(struct Block b)
die("strdup");
sb.length += strlen(b.text);
- /*
- * The buffer to store the text that will be displayed in. It needs space for the text, the
+ /* The buffer to store the text that will be displayed in. It needs space for the text, the
* seperators between the different blocks, the NUL byte at the end, and the right padding
* space.
*/
@@ -176,8 +175,7 @@ process(char *line, struct Block *b)
if (*line == '-') {
b->remove = true;
line++;
- }
- else
+ } else
b->remove = false;
if (!isdigit(*line))
@@ -203,8 +201,7 @@ create_fifo(char *fifo_path)
if (runtime_dir[end] == '/')
runtime_dir[end] = '\0';
sprintf(fifo_path, "%s/%s.pipe", runtime_dir, argv0);
- }
- else
+ } else
sprintf(fifo_path, _PATH_VARRUN "user/%d/%s.pipe", getuid(), argv0);
umask(0);
@@ -215,8 +212,7 @@ create_fifo:
if (unlink(fifo_path) == -1)
die("unlink");
goto create_fifo;
- }
- else
+ } else
die("mkfifo");
}