]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
change PF_INET to AF_INET to be consistent in the whole project. PF_INET is deprecate...
authoralex <alex@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 22 Feb 2007 13:34:36 +0000 (13:34 +0000)
committeralex <alex@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 22 Feb 2007 13:34:36 +0000 (13:34 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8073 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/barpainet.h
libavformat/tcp.c
libavformat/udp.c

index b50bf82b6e74c2ba7e24dbaebb48f8904a90e188..c79855c2f7b3be4136b51788da6c249b97fad15c 100644 (file)
@@ -27,7 +27,6 @@
 
 # include <socket.h>
 int inet_aton (const char * str, struct in_addr * add);
-# define PF_INET AF_INET
 # define SO_SNDBUF 0x40000001
 
 /* fake */
index fa9e13587ffc5178cf5a974561684e50f54d645a..a5539be4c436f0701c82c5ba08c39d84befdccd4 100644 (file)
@@ -73,7 +73,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
     if (resolve_host(&dest_addr.sin_addr, hostname) < 0)
         goto fail;
 
-    fd = socket(PF_INET, SOCK_STREAM, 0);
+    fd = socket(AF_INET, SOCK_STREAM, 0);
     if (fd < 0)
         goto fail;
     fcntl(fd, F_SETFL, O_NONBLOCK);
index 46edd0f9022396f77af275e16d5249a08ee89056..bbf8ca2ec6e6190166a8298196dbe3dd882229be 100644 (file)
@@ -330,7 +330,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
     }
 
 #ifndef CONFIG_IPV6
-    udp_fd = socket(PF_INET, SOCK_DGRAM, 0);
+    udp_fd = socket(AF_INET, SOCK_DGRAM, 0);
     if (udp_fd < 0)
         goto fail;