Mercurial > libavformat.hg
comparison tcp.c @ 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 | eb16c64144ee |
children | b6b8a9836cf9 |
comparison
equal
deleted
inserted
replaced
1809:491581a2b9a7 | 1810:d85795da84ab |
---|---|
71 dest_addr.sin_family = AF_INET; | 71 dest_addr.sin_family = AF_INET; |
72 dest_addr.sin_port = htons(port); | 72 dest_addr.sin_port = htons(port); |
73 if (resolve_host(&dest_addr.sin_addr, hostname) < 0) | 73 if (resolve_host(&dest_addr.sin_addr, hostname) < 0) |
74 goto fail; | 74 goto fail; |
75 | 75 |
76 fd = socket(PF_INET, SOCK_STREAM, 0); | 76 fd = socket(AF_INET, SOCK_STREAM, 0); |
77 if (fd < 0) | 77 if (fd < 0) |
78 goto fail; | 78 goto fail; |
79 fcntl(fd, F_SETFL, O_NONBLOCK); | 79 fcntl(fd, F_SETFL, O_NONBLOCK); |
80 | 80 |
81 redo: | 81 redo: |