aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipeutils.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-06 16:57:49 +0100
committerMattias Andrée <m@maandree.se>2025-03-06 16:57:49 +0100
commit4c3cd7fde636946bb806d9b2d025c59418fa4e85 (patch)
tree5fccfab94b4ee535c4627be80a9ea92e5ae291b2 /src/pipeutils.c
parentStyle (diff)
downloadredshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.gz
redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.bz2
redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.xz
style and some minor fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--src/pipeutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipeutils.c b/src/pipeutils.c
index 9ca19b2..163da5e 100644
--- a/src/pipeutils.c
+++ b/src/pipeutils.c
@@ -49,11 +49,11 @@ pipeutils_create_nonblocking(int pipefds[2])
for (i = 0; i < 2; i++) {
flags = fcntl(pipefds[0], F_GETFL);
if (flags == -1) {
- perror("fcntl <pipe> F_GETFL:");
+ weprintf("fcntl <pipe> F_GETFL:");
goto fail;
}
if (fcntl(pipefds[0], F_SETFL, flags | O_NONBLOCK)) {
- perror("fcntl <pipe> F_SETFL +O_NONBLOCK:");
+ weprintf("fcntl <pipe> F_SETFL +O_NONBLOCK:");
goto fail;
}
}