diff options
author | Olof-Joachim Frahm <olof@shiftleft.io> | 2020-05-29 11:41:58 +0200 |
---|---|---|
committer | Olof-Joachim Frahm <olof@shiftleft.io> | 2020-05-29 11:41:58 +0200 |
commit | a23571495beb95e146755e16b1a02dff03624625 (patch) | |
tree | e373c1e1e68539407a076003f8b92254941cce17 /src/imlib.c | |
parent | c9e024daeb43094696a05c8d03ef6682ed683dae (diff) |
Fix some warnings from `gcc`.
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imlib.c b/src/imlib.c index 5034be8..62d88c6 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -494,9 +494,7 @@ static char *feh_dcraw_load_image(char *filename) close(fd); return NULL; } else if (childpid == 0) { - - close(1); - dup(fd); + dup2(fd, STDOUT_FILENO); close(fd); alarm(opt.conversion_timeout); |