mirror of
https://github.com/videolan/vlc.git
synced 2024-12-13 03:33:54 +08:00
Cosmetic: socket(AF_ -> socket(PF_
This commit is contained in:
parent
aa55637b75
commit
5f9fc1cab0
@ -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 );
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user