Skip to content

Commit

Permalink
lib altsvc switch prio to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Apr 27, 2024
1 parent 548a9a9 commit e3e1a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/altsvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static CURLcode altsvc_add(struct altsvcinfo *asi, char *line)
as = altsvc_create(srchost, dsthost, srcalpn, dstalpn, srcport, dstport);
if(as) {
as->expires = expires;
as->prio = (int)prio;
as->prio = prio;
as->persist = persist ? 1 : 0;
Curl_llist_append(&asi->list, as, &as->node);
}
Expand Down Expand Up @@ -270,7 +270,7 @@ static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
"%s %s%s%s %u "
"\"%d%02d%02d "
"%02d:%02d:%02d\" "
"%u %d\n",
"%u %u\n",
Curl_alpnid2str(as->src.alpnid),
src6_pre, as->src.host, src6_post,
as->src.port,
Expand Down
2 changes: 1 addition & 1 deletion lib/altsvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct altsvc {
struct althost dst;
time_t expires;
bool persist;
int prio;
unsigned int prio;
struct Curl_llist_element node;
};

Expand Down

0 comments on commit e3e1a05

Please sign in to comment.