# HG changeset patch # User diego # Date 1177615652 0 # Node ID 3d04317ab396a4285cf7b9a2b9f3926a61f6e6bf # Parent 72377d102d60f753e272c50161faf9c5effab694 cosmetics: Remove trailing whitespace and tabs. diff -r 72377d102d60 -r 3d04317ab396 os_support.c --- a/os_support.c Thu Apr 26 18:31:33 2007 +0000 +++ b/os_support.c Thu Apr 26 19:27:32 2007 +0000 @@ -105,12 +105,12 @@ int resolve_host(struct in_addr *sin_addr, const char *hostname) { struct hostent *hp; - + if (!inet_aton(hostname, sin_addr)) { - hp = gethostbyname(hostname); - if (!hp) - return -1; - memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr)); + hp = gethostbyname(hostname); + if (!hp) + return -1; + memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr)); } return 0; }