From: Daniel Stenberg Date: Wed, 1 Apr 2026 07:23:44 +0000 (+0200) Subject: altsvc: drop the prio field from the struct X-Git-Tag: rc-8_20_0-1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1963e2d2ca51a6bac0cd337d3935873ecadd2c2;p=thirdparty%2Fcurl.git altsvc: drop the prio field from the struct The value is not used for anything, no point in keeping it in memory. Closes #21188 --- diff --git a/lib/altsvc.c b/lib/altsvc.c index dae490bc68..eb072bb49d 100644 --- a/lib/altsvc.c +++ b/lib/altsvc.c @@ -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; } diff --git a/lib/altsvc.h b/lib/altsvc.h index 702821656c..d1fed4fe1d 100644 --- a/lib/altsvc.h +++ b/lib/altsvc.h @@ -39,7 +39,6 @@ struct altsvc { struct althost dst; time_t expires; struct Curl_llist_node node; - unsigned int prio; BIT(persist); };