aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-flip.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-10 10:50:55 +0200
committerMattias Andrée <maandree@kth.se>2017-05-10 10:50:55 +0200
commit3ad57ea82389e52c72c310268bde8b8540fa408e (patch)
tree614bec84bf139b31553b5a3e939bf592b1f1c517 /src/blind-flip.c
parentFix typo (diff)
downloadblind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.gz
blind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.bz2
blind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.xz
blind-flip is optimal
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-flip.c')
-rw-r--r--src/blind-flip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blind-flip.c b/src/blind-flip.c
index 18914ae..71f30c4 100644
--- a/src/blind-flip.c
+++ b/src/blind-flip.c
@@ -27,6 +27,7 @@ main(int argc, char *argv[])
while (eread_frame(&stream, buf, n))
for (ptr = n; ptr;)
ewriteall(STDOUT_FILENO, buf + (ptr -= rown), rown, "<stdout>");
+ /* ewriteall is faster than writev(3) and vmsplice(3) */
free(buf);
return 0;