mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
altsvc: drop the prio field from the struct
The value is not used for anything, no point in keeping it in memory. Closes #21188
This commit is contained in:
parent
11609c3d45
commit
c1963e2d2c
@ -196,7 +196,6 @@ static CURLcode altsvc_add(struct altsvcinfo *asi, const char *line)
|
||||
(size_t)srcport, (size_t)dstport);
|
||||
if(as) {
|
||||
as->expires = expires;
|
||||
as->prio = 0; /* not supported, set zero */
|
||||
as->persist = persist ? 1 : 0;
|
||||
Curl_llist_append(&asi->list, as, &as->node);
|
||||
}
|
||||
@ -282,7 +281,7 @@ static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
|
||||
"%s %s%s%s %u "
|
||||
"\"%d%02d%02d "
|
||||
"%02d:%02d:%02d\" "
|
||||
"%u %u\n",
|
||||
"%u 0\n", /* prio still always zero */
|
||||
Curl_alpnid2str(as->src.alpnid),
|
||||
src6_pre, as->src.host, src6_post,
|
||||
as->src.port,
|
||||
@ -293,7 +292,7 @@ static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
|
||||
|
||||
stamp.tm_year + 1900, stamp.tm_mon + 1, stamp.tm_mday,
|
||||
stamp.tm_hour, stamp.tm_min, stamp.tm_sec,
|
||||
as->persist, as->prio);
|
||||
as->persist);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,6 @@ struct altsvc {
|
||||
struct althost dst;
|
||||
time_t expires;
|
||||
struct Curl_llist_node node;
|
||||
unsigned int prio;
|
||||
BIT(persist);
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user