[Ffmpeg-cvslog] r8073 - in trunk/libavformat: barpainet.h tcp.c udp.c

alex subversion
Thu Feb 22 14:34:36 CET 2007


Author: alex
Date: Thu Feb 22 14:34:36 2007
New Revision: 8073

Modified:
   trunk/libavformat/barpainet.h
   trunk/libavformat/tcp.c
   trunk/libavformat/udp.c

Log:
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

Modified: trunk/libavformat/barpainet.h
==============================================================================
--- trunk/libavformat/barpainet.h	(original)
+++ trunk/libavformat/barpainet.h	Thu Feb 22 14:34:36 2007
@@ -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 */

Modified: trunk/libavformat/tcp.c
==============================================================================
--- trunk/libavformat/tcp.c	(original)
+++ trunk/libavformat/tcp.c	Thu Feb 22 14:34:36 2007
@@ -73,7 +73,7 @@
     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);

Modified: trunk/libavformat/udp.c
==============================================================================
--- trunk/libavformat/udp.c	(original)
+++ trunk/libavformat/udp.c	Thu Feb 22 14:34:36 2007
@@ -330,7 +330,7 @@
     }
 
 #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;
 




More information about the ffmpeg-cvslog mailing list