Commit 5f9fc1ca authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Cosmetic: socket(AF_ -> socket(PF_

parent aa55637b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment