diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:14:50 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:14:50 +0200 |
commit | 902d39a3a79c6efe93c8879575fdd5a759cf03de (patch) | |
tree | e6ec0af8ac4333de34f581c2c7b5a2eb93e635a1 /main/network.c | |
parent | 581f0141b6dd8d20e71612f90b01507ed0783db8 (diff) | |
download | php-git-902d39a3a79c6efe93c8879575fdd5a759cf03de.tar.gz |
Trim trailing whitespace in source code files
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/network.c b/main/network.c index c5cf5a5f06..13964e34f8 100644 --- a/main/network.c +++ b/main/network.c @@ -1278,11 +1278,11 @@ struct hostent * gethostname_re (const char *host,struct hostent *hostbuf,char * int herr,res; if (*hstbuflen == 0) { - *hstbuflen = 1024; + *hstbuflen = 1024; *tmphstbuf = (char *)malloc (*hstbuflen); } - while (( res = + while (( res = gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&hp,&herr)) && (errno == ERANGE)) { /* Enlarge the buffer. */ @@ -1293,7 +1293,7 @@ struct hostent * gethostname_re (const char *host,struct hostent *hostbuf,char * if (res != SUCCESS) { return NULL; } - + return hp; } #endif @@ -1308,7 +1308,7 @@ struct hostent * gethostname_re (const char *host,struct hostent *hostbuf,char * *tmphstbuf = (char *)malloc (*hstbuflen); } - while ((NULL == ( hp = + while ((NULL == ( hp = gethostbyname_r(host,hostbuf,*tmphstbuf,*hstbuflen,&herr))) && (errno == ERANGE)) { /* Enlarge the buffer. */ |