[Sumover-dev] [svn commit] r4564 - vic/branches/mpeg4/net

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Fri Jan 22 15:44:08 GMT 2010


Author: piers
Date: Fri Jan 22 15:44:08 2010
New Revision: 4564

Modified:
   vic/branches/mpeg4/net/inet.c

Log:
Added herror() debug output - when gethostbyname fails


Modified: vic/branches/mpeg4/net/inet.c
==============================================================================
--- vic/branches/mpeg4/net/inet.c	(original)
+++ vic/branches/mpeg4/net/inet.c	Fri Jan 22 15:44:08 2010
@@ -57,8 +57,10 @@
      }
    }
    hp = gethostbyname(s);
-   if (hp == 0)
+   if (hp == 0){
+       herror("Failed to lookup address using gethostbyname()");
        return (0);
+   }
    return *((u_int32_t **)hp->h_addr_list)[0];
 }
 



More information about the Sumover-dev mailing list