]> git.sesse.net Git - vlc/commitdiff
Typos
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 11 Oct 2008 17:23:54 +0000 (20:23 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 11 Oct 2008 17:23:54 +0000 (20:23 +0300)
modules/demux/decomp.c

index 74b9eac67cc9ffa83e1b42906821d3b7a46d8cd8..d37b04ee0f7d11652c57bd42fc4714a2405ef831 100644 (file)
@@ -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))
                 {