mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:43:39 +03:00
urldata: use a curl_prot_t type for storing protocol bits
This internal-use-only storage type can be bumped to a curl_off_t once we need to use bit 32 as the previous 'unsigned int' can no longer hold them all then. The websocket protocols take bit 30 and 31 so they are the last ones that fit within 32 bits - but cannot properly be exported through APIs since those use *signed* 32 bit types (long) in places. Closes #9481
This commit is contained in:
parent
0f52dd5fd5
commit
cd5ca80f00
4 changed files with 38 additions and 19 deletions
|
|
@ -167,7 +167,7 @@ static void conn_free(struct connectdata *conn);
|
|||
*
|
||||
* Returns the family as a single bit protocol identifier.
|
||||
*/
|
||||
static unsigned int get_protocol_family(const struct Curl_handler *h)
|
||||
static curl_prot_t get_protocol_family(const struct Curl_handler *h)
|
||||
{
|
||||
DEBUGASSERT(h);
|
||||
DEBUGASSERT(h->family);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue