]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
altsvc: drop the prio field from the struct 21188/head
authorDaniel Stenberg <daniel@haxx.se>
Wed, 1 Apr 2026 07:23:44 +0000 (09:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Apr 2026 09:06:43 +0000 (11:06 +0200)
The value is not used for anything, no point in keeping it in memory.

Closes #21188

lib/altsvc.c
lib/altsvc.h

index dae490bc68eb3f3cab96531f80a20dbeff6685bc..eb072bb49d55da42b8ae1ff1eb25c16c2198b494 100644 (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;
 }
 
index 702821656c6a670c117113c64883bb081871865a..d1fed4fe1d667775737693b1b6ccda300a0a448c 100644 (file)
@@ -39,7 +39,6 @@ struct altsvc {
   struct althost dst;
   time_t expires;
   struct Curl_llist_node node;
-  unsigned int prio;
   BIT(persist);
 };