summaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-09 23:55:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-11 09:29:50 +0200
commite5743f08e7efb387bb39c0dc28f36838ece3bc1e (patch)
treeb0237e17762f3be2bb6f8cf53fea1491a2c731ad /tests/server/sws.c
parentca86006debc4570bbb3eacb71965c9d59be14084 (diff)
downloadcurl-e5743f08e7efb387bb39c0dc28f36838ece3bc1e.tar.gz
code style: use spaces around pluses
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 5fcd6732b..993fefcf7 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -578,18 +578,18 @@ static int ProcessRequest(struct httprequest *req)
}
if(*p != ']')
logmsg("Invalid CONNECT IPv6 address format");
- else if(*(p+1) != ':')
+ else if(*(p + 1) != ':')
logmsg("Invalid CONNECT IPv6 port format");
else
- portp = p+1;
+ portp = p + 1;
req->testno = part;
}
else
portp = strchr(doc, ':');
- if(portp && (*(portp+1) != '\0') && ISDIGIT(*(portp+1))) {
- unsigned long ulnum = strtoul(portp+1, NULL, 10);
+ if(portp && (*(portp + 1) != '\0') && ISDIGIT(*(portp + 1))) {
+ unsigned long ulnum = strtoul(portp + 1, NULL, 10);
if(!ulnum || (ulnum > 65535UL))
logmsg("Invalid CONNECT port received");
else