From 7bd1282fba79997816521e25485ab890a0a0126d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 15 Jan 2017 17:40:22 +0100 Subject: Fix some minor errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-arithm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/blind-arithm.c') 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 #include -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 = ""; 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, ""); process_two_streams(&left, &right, STDOUT_FILENO, "", process); return 0; } -- cgit v1.2.3-70-g09d2