aboutsummaryrefslogtreecommitdiffstats
path: root/kirc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kirc.c')
-rw-r--r--kirc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/kirc.c b/kirc.c
index bbc2652..f87c3d9 100644
--- a/kirc.c
+++ b/kirc.c
@@ -242,8 +242,15 @@ main(int argc, char **argv) {
}
}
- if (!nick) perror("Nick not specified"); return 1;
- if (pipe(fd) < 0) perror("Pipe() failed"); return 1;
+ if (!nick) {
+ perror("Nick not specified");
+ return 1;
+ }
+
+ if (pipe(fd) < 0) {
+ perror("Pipe() failed");
+ return 1;
+ }
pid_t pid = fork();