From b9cf76e892ff21d5b1808c9b52245c872fac67c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 11 Oct 2008 20:23:54 +0300 Subject: [PATCH] Typos --- modules/demux/decomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/decomp.c b/modules/demux/decomp.c index 74b9eac67c..d37b04ee0f 100644 --- a/modules/demux/decomp.c +++ b/modules/demux/decomp.c @@ -66,7 +66,7 @@ struct demux_sys_t static void cloexec (int fd) { int flags = fcntl (fd, F_GETFD); - fcntl (fd, F_SETFD, O_CLOEXEC | (flags != -1) ? flags : 0); + fcntl (fd, F_SETFD, FD_CLOEXEC | ((flags != -1) ? flags : 0)); } extern char **environ; @@ -202,7 +202,7 @@ static int Open (demux_t *demux, const char *path) if (!posix_spawn_file_actions_adddup2 (&actions, comp[0], 0) && !posix_spawn_file_actions_addclose (&actions, comp[0]) && !posix_spawn_file_actions_adddup2 (&actions, uncomp[1], 1) - && !posix_spawn_file_actions_addclose (&actions, comp[1]) + && !posix_spawn_file_actions_addclose (&actions, uncomp[1]) && !posix_spawnp (&p_sys->pid, path, &actions, NULL, argv, environ)) { -- 2.20.1