cosmetics in resolve_host
Originally committed as revision 8833 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0913873e5b
commit
a33cc9511b
@ -33,7 +33,7 @@ int resolve_host(struct in_addr *sin_addr, const char *hostname)
|
|||||||
{
|
{
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
|
|
||||||
if ((inet_aton(hostname, sin_addr)) == 0) {
|
if (!inet_aton(hostname, sin_addr)) {
|
||||||
hp = gethostbyname(hostname);
|
hp = gethostbyname(hostname);
|
||||||
if (!hp)
|
if (!hp)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user