commit c0cf9ade2605856d2aac986e5bfb429badc5c729
parent 2d93b6f04f44d94cc38dd1ef666867c0ca95574f
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 1 Aug 2022 13:44:56 +0200
Code cleanup in xsplice().
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ind.c b/ind.c
@@ -110,7 +110,7 @@ xsplice(int fd, int sock)
if (pipe(pipefd) < 0) {
perror("pipe");
- _exit(1);
+ exit(1);
}
do {
@@ -122,7 +122,8 @@ xsplice(int fd, int sock)
goto out;
}
- nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE, SPLICE_F_MOVE | SPLICE_F_MORE);
+ nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE,
+ SPLICE_F_MOVE | SPLICE_F_MORE);
if (nwritten < 0) {
ret = 1;
goto out;