Cosmetic: socket(AF_ -> socket(PF_

This commit is contained in:
Rémi Denis-Courmont 2009-08-06 19:40:35 +03:00
parent aa55637b75
commit 5f9fc1cab0
3 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
publicSock = socket(AF_UNIX, SOCK_STREAM, 0); publicSock = socket(PF_UNIX, SOCK_STREAM, 0);
if( publicSock == -1 ) if( publicSock == -1 )
{ {
msg_Err( p_access, "create local socket failed (errno=%d)", errno ); msg_Err( p_access, "create local socket failed (errno=%d)", errno );

View File

@ -59,8 +59,8 @@
#include <vlc_charset.h> #include <vlc_charset.h>
#if defined(AF_UNIX) && !defined(AF_LOCAL) #if defined(PF_UNIX) && !defined(PF_LOCAL)
# define AF_LOCAL AF_UNIX # define PF_LOCAL PF_UNIX
#endif #endif
#if defined(AF_LOCAL) && ! defined(WIN32) #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" ); 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" ); msg_Warn( p_intf, "can't open socket: %m" );
free( psz_unix_path ); free( psz_unix_path );

View File

@ -306,7 +306,7 @@ int __vlc_execve( vlc_object_t *p_object, int i_argc, char *const *ppsz_argv,
# define BUFSIZE 1024 # define BUFSIZE 1024
int fds[2], i_status; int fds[2], i_status;
if (socketpair (AF_LOCAL, SOCK_STREAM, 0, fds)) if (socketpair (PF_LOCAL, SOCK_STREAM, 0, fds))
return -1; return -1;
pid_t pid = -1; pid_t pid = -1;