diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-09-23 12:47:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-09-23 12:47:18 +0000 |
commit | b466924717163bb034139eb74376294ca085dbc1 (patch) | |
tree | 5b420ece8dad5ac88940f2355672fe4a59e6b73c /lib | |
parent | cbc0f65fa33eef98f0a25e8c20564fbb49ecd904 (diff) |
removed use of extra unneeded variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/http.c b/lib/http.c index 177d61100..855d74733 100644 --- a/lib/http.c +++ b/lib/http.c @@ -449,23 +449,21 @@ CURLcode Curl_http_connect(struct connectdata *conn) CURLcode Curl_http_done(struct connectdata *conn) { struct SessionHandle *data; - long *bytecount = &conn->bytecount; struct HTTP *http; data=conn->data; http=conn->proto.http; if(HTTPREQ_POST_FORM == data->set.httpreq) { - *bytecount = http->readbytecount + http->writebytecount; + conn->bytecount = http->readbytecount + http->writebytecount; Curl_formclean(http->sendit); /* Now free that whole lot */ data->set.fread = http->storefread; /* restore */ data->set.in = http->in; /* restore */ } - else if(HTTPREQ_PUT == data->set.httpreq) { - *bytecount = http->readbytecount + http->writebytecount; - } + else if(HTTPREQ_PUT == data->set.httpreq) + conn->bytecount = http->readbytecount + http->writebytecount; if(0 == (http->readbytecount + conn->headerbytecount)) { /* nothing was read from the HTTP server, this can't be right @@ -487,7 +485,6 @@ CURLcode Curl_http(struct connectdata *conn) struct Cookie *co=NULL; /* no cookies from start */ char *ppath = conn->ppath; /* three previous function arguments */ char *host = conn->name; - long *bytecount = &conn->bytecount; if(!conn->proto.http) { /* Only allocate this struct if we don't already have it! */ |