Skip to content
Snippets Groups Projects
Commit 00312e95 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

removed variable declarations shadowing previously declared variables

parent 4223130b
No related branches found
No related tags found
No related merge requests found
...@@ -307,9 +307,9 @@ int ProcessRequest(struct httprequest *req) ...@@ -307,9 +307,9 @@ int ProcessRequest(struct httprequest *req)
else if(!strncmp(doc, "test", 4)) { else if(!strncmp(doc, "test", 4)) {
/* if the host name starts with test, the port number used in the /* if the host name starts with test, the port number used in the
CONNECT line will be used as test number! */ CONNECT line will be used as test number! */
char *ptr = strchr(doc, ':'); char *portp = strchr(doc, ':');
if(ptr) if(portp)
req->testno = atoi(ptr+1); req->testno = atoi(portp+1);
else else
req->testno = DOCNUMBER_CONNECT; req->testno = DOCNUMBER_CONNECT;
} }
...@@ -643,7 +643,7 @@ static int send_doc(int sock, struct httprequest *req) ...@@ -643,7 +643,7 @@ static int send_doc(int sock, struct httprequest *req)
if(cmdsize > 0 ) { if(cmdsize > 0 ) {
char command[32]; char command[32];
int num; int num;
char *ptr=cmd; ptr=cmd;
do { do {
if(2 == sscanf(ptr, "%31s %d", command, &num)) { if(2 == sscanf(ptr, "%31s %d", command, &num)) {
if(!strcmp("wait", command)) { if(!strcmp("wait", command)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment