Mercurial > libavformat.hg
changeset 1810:d85795da84ab libavformat
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
author | alex |
---|---|
date | Thu, 22 Feb 2007 13:34:36 +0000 |
parents | 491581a2b9a7 |
children | 68a6f63dd570 |
files | barpainet.h tcp.c udp.c |
diffstat | 3 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/barpainet.h Thu Feb 22 13:23:38 2007 +0000 +++ b/barpainet.h Thu Feb 22 13:34:36 2007 +0000 @@ -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 */
--- a/tcp.c Thu Feb 22 13:23:38 2007 +0000 +++ b/tcp.c Thu Feb 22 13:34:36 2007 +0000 @@ -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);