Commit b5cccea0 authored by Alex Beregszaszi's avatar Alex Beregszaszi

change PF_INET to AF_INET to be consistent in the whole project. PF_INET is...

change PF_INET to AF_INET to be consistent in the whole project. PF_INET is deprecated, while AF_INET is referred by the POSIX standards

Originally committed as revision 8073 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5400e092
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
# include <socket.h> # include <socket.h>
int inet_aton (const char * str, struct in_addr * add); int inet_aton (const char * str, struct in_addr * add);
# define PF_INET AF_INET
# define SO_SNDBUF 0x40000001 # define SO_SNDBUF 0x40000001
/* fake */ /* fake */
......
...@@ -73,7 +73,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags) ...@@ -73,7 +73,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
if (resolve_host(&dest_addr.sin_addr, hostname) < 0) if (resolve_host(&dest_addr.sin_addr, hostname) < 0)
goto fail; goto fail;
fd = socket(PF_INET, SOCK_STREAM, 0); fd = socket(AF_INET, SOCK_STREAM, 0);
if (fd < 0) if (fd < 0)
goto fail; goto fail;
fcntl(fd, F_SETFL, O_NONBLOCK); fcntl(fd, F_SETFL, O_NONBLOCK);
......
...@@ -330,7 +330,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) ...@@ -330,7 +330,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
} }
#ifndef CONFIG_IPV6 #ifndef CONFIG_IPV6
udp_fd = socket(PF_INET, SOCK_DGRAM, 0); udp_fd = socket(AF_INET, SOCK_DGRAM, 0);
if (udp_fd < 0) if (udp_fd < 0)
goto fail; goto fail;
......
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