[SCM] libav/experimental: cosmetics in resolve_host
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:59:15 UTC 2013
The following commit has been merged in the experimental branch:
commit a33cc9511b968bee9a2e64644b7c17090eb4583d
Author: Alex Beregszaszi <alex at rtfs.hu>
Date: Thu Apr 26 18:00:28 2007 +0000
cosmetics in resolve_host
Originally committed as revision 8833 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index a5539be..3f46b79 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -33,11 +33,11 @@ int resolve_host(struct in_addr *sin_addr, const char *hostname)
{
struct hostent *hp;
- if ((inet_aton(hostname, sin_addr)) == 0) {
+ if (!inet_aton(hostname, sin_addr)) {
hp = gethostbyname(hostname);
if (!hp)
return -1;
- memcpy (sin_addr, hp->h_addr, sizeof(struct in_addr));
+ memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
}
return 0;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list