[vlc-devel] commit: Cosmetic: socket(AF_ -> socket(PF_ ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 6 18:41:46 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug  6 19:40:35 2009 +0300| [5f9fc1cab05f3e0656b62ef195ac4eacad403a89] | committer: Rémi Denis-Courmont 

Cosmetic: socket(AF_ -> socket(PF_

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

 modules/access/eyetv.m |    2 +-
 modules/control/rc.c   |    6 +++---
 src/extras/libc.c      |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/access/eyetv.m b/modules/access/eyetv.m
index b835ce1..6933e23 100644
--- a/modules/access/eyetv.m
+++ b/modules/access/eyetv.m
@@ -187,7 +187,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    publicSock = socket(AF_UNIX, SOCK_STREAM, 0);
+    publicSock = socket(PF_UNIX, SOCK_STREAM, 0);
     if( publicSock == -1 )
     {
         msg_Err( p_access, "create local socket failed (errno=%d)", errno );
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 430dc8b..423d6db 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -59,8 +59,8 @@
 
 #include <vlc_charset.h>
 
-#if defined(AF_UNIX) && !defined(AF_LOCAL)
-#    define AF_LOCAL AF_UNIX
+#if defined(PF_UNIX) && !defined(PF_LOCAL)
+#    define PF_LOCAL PF_UNIX
 #endif
 
 #if defined(AF_LOCAL) && ! defined(WIN32)
@@ -246,7 +246,7 @@ static int Activate( vlc_object_t *p_this )
 
         msg_Dbg( p_intf, "trying UNIX socket" );
 
-        if( (i_socket = socket( AF_LOCAL, SOCK_STREAM, 0 ) ) < 0 )
+        if( (i_socket = socket( PF_LOCAL, SOCK_STREAM, 0 ) ) < 0 )
         {
             msg_Warn( p_intf, "can't open socket: %m" );
             free( psz_unix_path );
diff --git a/src/extras/libc.c b/src/extras/libc.c
index 6473497..94b7e77 100644
--- a/src/extras/libc.c
+++ b/src/extras/libc.c
@@ -306,7 +306,7 @@ int __vlc_execve( vlc_object_t *p_object, int i_argc, char *const *ppsz_argv,
 # define BUFSIZE 1024
     int fds[2], i_status;
 
-    if (socketpair (AF_LOCAL, SOCK_STREAM, 0, fds))
+    if (socketpair (PF_LOCAL, SOCK_STREAM, 0, fds))
         return -1;
 
     pid_t pid = -1;




More information about the vlc-devel mailing list