diff options
author | Daniel Stenberg <daniel@haxx.se> | 2025-08-07 23:11:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2025-08-08 11:43:28 +0200 |
commit | da27db068fc888d7091d34708096bc8083f46554 (patch) | |
tree | 34ae0c6d05b2af8b4e8cec7337234d4de49e66ce /docs/examples/range.c | |
parent | 065a6531583d58b4f2fdf81e83863ccf3158ff7f (diff) |
tool_operate: cleanups
- move the state struct from config to global. It is used as a single
instance anyway so might as well be a single one to save memory.
- simplify and combine several conditions
- set default retry delay inititally
- use better struct field names to make it easier to understand their
purposes
- remove the state->outfiles field as it was not necessary
- remove superfluous glob cleanup call
- move conditions around to remove an indent level
- move the ->url NULL check
Takes single_transfer()'s complexity score down from 78 to 68.
Closes #18226
Diffstat (limited to 'docs/examples/range.c')
0 files changed, 0 insertions, 0 deletions