diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-07-23 22:55:14 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-07-23 22:55:14 +0200 |
| commit | d391ca2ddb719d2478e824dec082b849613eeda6 (patch) | |
| tree | 93f34a065a571f51101a0c884ae982c2cb65cbf2 /src/blind-single-colour.c | |
| parent | blind-primary-key: remove ./ and make more portable (diff) | |
| download | blind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.gz blind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.bz2 blind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.xz | |
Fix support for using sockets insteads of pipes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/blind-single-colour.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index b8f693a..7e8c348 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -86,8 +86,7 @@ PROCESS(void) for (y = stream.height; y--;) for (x = stream.width * sizeof(*buf); x;) for (x -= n = MIN(sizeof(buf), x); n; n -= (size_t)r) - if ((r = write(STDOUT_FILENO, buf, n)) < 0) - eprintf("write <stdout>:"); + r = ewrite(STDOUT_FILENO, buf, n, "<stdout>"); } #endif |
