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:
Daniel Stenberg 2026-04-01 09:23:44 +02:00
parent 11609c3d45
commit c1963e2d2c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -39,7 +39,6 @@ struct altsvc {
struct althost dst;
time_t expires;
struct Curl_llist_node node;
unsigned int prio;
BIT(persist);
};