diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-05-10 09:53:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-10 09:53:52 +0000 |
commit | 00312e95fefe790588ae8d80714e9002c24a04a0 (patch) | |
tree | ab1e51f19a40735dcc71fc8b8a198733c29a09c8 /tests | |
parent | 4223130bb0bf0080cc1331ce37b6d4e81a764b69 (diff) | |
download | curl-00312e95fefe790588ae8d80714e9002c24a04a0.tar.gz |
removed variable declarations shadowing previously declared variables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sws.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index 6eb89e562..95429dfcd 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -307,9 +307,9 @@ int ProcessRequest(struct httprequest *req) else if(!strncmp(doc, "test", 4)) { /* if the host name starts with test, the port number used in the CONNECT line will be used as test number! */ - char *ptr = strchr(doc, ':'); - if(ptr) - req->testno = atoi(ptr+1); + char *portp = strchr(doc, ':'); + if(portp) + req->testno = atoi(portp+1); else req->testno = DOCNUMBER_CONNECT; } @@ -643,7 +643,7 @@ static int send_doc(int sock, struct httprequest *req) if(cmdsize > 0 ) { char command[32]; int num; - char *ptr=cmd; + ptr=cmd; do { if(2 == sscanf(ptr, "%31s %d", command, &num)) { if(!strcmp("wait", command)) { |