diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-15 17:40:22 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-15 17:40:22 +0100 |
| commit | 7bd1282fba79997816521e25485ab890a0a0126d (patch) | |
| tree | ba018cf7463c015a1e9b6ad69751c8c56bd8b0a3 /src/blind-arithm.c | |
| parent | Use macros to write the head (diff) | |
| download | blind-7bd1282fba79997816521e25485ab890a0a0126d.tar.gz blind-7bd1282fba79997816521e25485ab890a0a0126d.tar.bz2 blind-7bd1282fba79997816521e25485ab890a0a0126d.tar.xz | |
Fix some minor errors
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-arithm.c')
| -rw-r--r-- | src/blind-arithm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blind-arithm.c b/src/blind-arithm.c index ce85287..015df42 100644 --- a/src/blind-arithm.c +++ b/src/blind-arithm.c @@ -8,7 +8,7 @@ #include <string.h> #include <unistd.h> -USAGE("right-hand-stream") +USAGE("operation right-hand-stream") /* Because the syntax for a function returning a function pointer is disgusting. */ typedef void (*process_func)(struct stream *left, struct stream *right, size_t n); @@ -60,7 +60,7 @@ main(int argc, char *argv[]) struct stream left, right; process_func process = NULL; - ENOFLAGS(argc != 1); + ENOFLAGS(argc != 2); left.file = "<stdin>"; left.fd = STDIN_FILENO; @@ -75,6 +75,8 @@ main(int argc, char *argv[]) else eprintf("pixel format %s is not supported, try xyza\n", left.pixfmt); + fprint_stream_head(stdout, &left); + efflush(stdout, "<stdout>"); process_two_streams(&left, &right, STDOUT_FILENO, "<stdout>", process); return 0; } |
