mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:33:33 +03:00
tests/server: comply with our code style
This commit is contained in:
parent
a71012c03e
commit
a332c4f769
9 changed files with 240 additions and 210 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -126,7 +126,7 @@ int main(int argc, char *argv[])
|
|||
sclose(s);
|
||||
}
|
||||
|
||||
if (rc == 0) {
|
||||
if(rc == 0) {
|
||||
/* getaddrinfo() resolve */
|
||||
struct addrinfo *ai;
|
||||
struct addrinfo hints;
|
||||
|
|
@ -138,7 +138,7 @@ int main(int argc, char *argv[])
|
|||
/* Use parenthesis around functions to stop them from being replaced by
|
||||
the macro in memdebug.h */
|
||||
rc = (getaddrinfo)(host, "80", &hints, &ai);
|
||||
if (rc == 0)
|
||||
if(rc == 0)
|
||||
(freeaddrinfo)(ai);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue