diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 17:04:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 17:04:50 +0100 |
commit | cc0aec8193ccf699e20fa86ffe3255b02793eb26 (patch) | |
tree | e352911d9d3667c500aaba68ef65f82104dc666a | |
parent | c30bf22f1c1b2d5043517845204d53d6752db0fe (diff) | |
download | curl-bagder/urldata-rm-rtspversion.tar.gz |
urldata: remove the 'rtspversion' fieldbagder/urldata-rm-rtspversion
from struct connectdata and the corresponding code in http.c that set
it. It was never used for anything!
-rw-r--r-- | lib/http.c | 4 | ||||
-rw-r--r-- | lib/urldata.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/http.c b/lib/http.c index 4c80bf938..75cf7f4ab 100644 --- a/lib/http.c +++ b/lib/http.c @@ -4204,14 +4204,14 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data, } else if(conn->handler->protocol & CURLPROTO_RTSP) { char separator; + int rtspversion; nc = sscanf(HEADER1, " RTSP/%1d.%1d%c%3d", &rtspversion_major, - &conn->rtspversion, + &rtspversion, &separator, &k->httpcode); if((nc == 4) && (' ' == separator)) { - conn->rtspversion += 10 * rtspversion_major; conn->httpversion = 11; /* For us, RTSP acts like HTTP 1.1 */ } else { diff --git a/lib/urldata.h b/lib/urldata.h index 09a78d922..02a034217 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -981,12 +981,8 @@ struct connectdata { char *user; /* user name string, allocated */ char *passwd; /* password string, allocated */ char *options; /* options string, allocated */ - char *sasl_authzid; /* authorisation identity string, allocated */ - int httpversion; /* the HTTP version*10 reported by the server */ - int rtspversion; /* the RTSP version*10 reported by the server */ - struct curltime now; /* "current" time */ struct curltime created; /* creation time */ struct curltime lastused; /* when returned to the connection cache */ |