From d391ca2ddb719d2478e824dec082b849613eeda6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Jul 2017 22:55:14 +0200 Subject: Fix support for using sockets insteads of pipes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-coordinate-field.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/blind-coordinate-field.c') diff --git a/src/blind-coordinate-field.c b/src/blind-coordinate-field.c index d4cd390..3b8a7c6 100644 --- a/src/blind-coordinate-field.c +++ b/src/blind-coordinate-field.c @@ -64,8 +64,7 @@ PROCESS(void) buf[1] = (TYPE)y; for (x = 0; x < stream.width; x++) { buf[0] = (TYPE)x; - if (write(STDOUT_FILENO, buf, sizeof(buf)) < 0) - eprintf("write :"); + ewrite(STDOUT_FILENO, buf, sizeof(buf), ""); } } } -- cgit v1.2.3-70-g09d2