[vlc-devel] commit: Typos ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 11 19:36:44 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Oct 11 20:23:54 2008 +0300| [b9cf76e892ff21d5b1808c9b52245c872fac67c7] | committer: Rémi Denis-Courmont 

Typos

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9cf76e892ff21d5b1808c9b52245c872fac67c7
---

 modules/demux/decomp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/decomp.c b/modules/demux/decomp.c
index 74b9eac..d37b04e 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))
                 {




More information about the vlc-devel mailing list