diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-04-26 18:04:42 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-04-26 18:04:42 +0000 |
commit | 383eda234879aad7e90fe73c52574ef7e735f85c (patch) | |
tree | fdde53ed65a31752480f2269af5c643526db3e0c /libavformat/tcp.c | |
parent | a33cc9511b968bee9a2e64644b7c17090eb4583d (diff) | |
download | ffmpeg-383eda234879aad7e90fe73c52574ef7e735f85c.tar.gz |
move resolve_host from tcp.c to os_support.c as it is used widely
Originally committed as revision 8834 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 3f46b791a5..40aba66a2d 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -28,20 +28,6 @@ typedef struct TCPContext { int fd; } TCPContext; -/* resolve host with also IP address parsing */ -int resolve_host(struct in_addr *sin_addr, const char *hostname) -{ - struct hostent *hp; - - if (!inet_aton(hostname, sin_addr)) { - hp = gethostbyname(hostname); - if (!hp) - return -1; - memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr)); - } - return 0; -} - /* return non zero if error */ static int tcp_open(URLContext *h, const char *uri, int flags) { |