curl: change the struct getout flags field into bitfields

As the flags were use mostly as individual booleans anyway, the code
gets simpler when we use bitfields instead of manual bitwise operations.

Closes #17436
This commit is contained in:
Daniel Stenberg 2025-05-24 00:08:56 +02:00
parent 8ab73bb1ff
commit 65e4444d67
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 39 additions and 42 deletions

View file

@ -52,7 +52,7 @@ struct getout *new_getout(struct OperationConfig *config)
/* move the last pointer */
config->url_last = node;
node->flags = config->default_node_flags;
node->useremote = config->remote_name_all;
node->num = outnum++;
}
return node;