From b74bc88385a52e87d16f71d75a12f784ce1fce6d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 11 Mar 2020 13:36:41 +0100 Subject: Cygwin: fix formatting: drop trailing whitespace Signed-off-by: Corinna Vinschen --- winsup/cygwin/net.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 6ae1e167b..724e787fe 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -863,15 +863,15 @@ memcpy4to6 (char *dst, const u_int8_t *src) memcpy (dst + 12, src, NS_INADDRSZ); } -/* gethostby_specials: RFC 6761 - Handles numerical addresses and special names for gethostbyname2 */ +/* gethostby_specials: RFC 6761 + Handles numerical addresses and special names for gethostbyname2 */ static hostent * gethostby_specials (const char *name, const int af, const int addrsize_in, const int addrsize_out) { int namelen = strlen (name); /* Ignore a final '.' */ - if ((namelen == 0) || ((namelen -= (name[namelen - 1] == '.')) == 0)) + if ((namelen == 0) || ((namelen -= (name[namelen - 1] == '.')) == 0)) { set_errno (EINVAL); h_errno = NETDB_INTERNAL; @@ -919,7 +919,7 @@ gethostby_specials (const char *name, const int af, } } if (res != 1) - return NULL; + return NULL; int const alias_count = 0, address_count = 1; char * string_ptr; @@ -2975,7 +2975,7 @@ cygwin_getaddrinfo (const char *hostname, const char *servname, int ret = 0; /* Windows' getaddrinfo implementations lets all possible values - in ai_flags slip through and just ignores unknown values. So we + in ai_flags slip through and just ignores unknown values. So we check manually here. */ #define AI_IDN_MASK (AI_IDN | \ AI_CANONIDN | \ -- cgit v1.2.3