projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0913873
)
cosmetics in resolve_host
author
Alex Beregszaszi
<alex@rtfs.hu>
Thu, 26 Apr 2007 18:00:28 +0000
(18:00 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Thu, 26 Apr 2007 18:00:28 +0000
(18:00 +0000)
Originally committed as revision 8833 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/tcp.c
patch
|
blob
|
history
diff --git
a/libavformat/tcp.c
b/libavformat/tcp.c
index
a5539be
..
3f46b79
100644
(file)
--- 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;
}