From dac6950d9e556d5521ad7913d27a6cf83e2a90a1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Apr 2017 23:46:17 +0200 Subject: Clean up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-set-luma.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/blind-set-luma.c') diff --git a/src/blind-set-luma.c b/src/blind-set-luma.c index f4bd3d5..751bc6b 100644 --- a/src/blind-set-luma.c +++ b/src/blind-set-luma.c @@ -94,13 +94,8 @@ main(int argc, char *argv[]) UNOFLAGS(argc != 1); - colour.file = ""; - colour.fd = STDIN_FILENO; - einit_stream(&colour); - - luma.file = argv[0]; - luma.fd = eopen(luma.file, O_RDONLY); - einit_stream(&luma); + eopen_stream(&colour, NULL); + eopen_stream(&luma, argv[0]); if (!strcmp(colour.pixfmt, "xyza")) process = process_xyza; -- cgit v1.2.3-70-g09d2