[Ffmpeg-cvslog] r8833 - trunk/libavformat/tcp.c

alex subversion
Thu Apr 26 20:00:29 CEST 2007


Author: alex
Date: Thu Apr 26 20:00:28 2007
New Revision: 8833

Log:
cosmetics in resolve_host

Modified:
   trunk/libavformat/tcp.c

Modified: trunk/libavformat/tcp.c
==============================================================================
--- trunk/libavformat/tcp.c	(original)
+++ trunk/libavformat/tcp.c	Thu Apr 26 20:00:28 2007
@@ -33,11 +33,11 @@ int resolve_host(struct in_addr *sin_add
 {
     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;
 }




More information about the ffmpeg-cvslog mailing list