]> git.ipfire.org Git - thirdparty/curl.git/commit
formdata: cleanups
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 May 2025 21:18:34 +0000 (23:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 May 2025 11:26:02 +0000 (13:26 +0200)
commitc26da713e7dfa8c26a71bf3c0c75a1c1d932bc42
treeb85091841d4df5ed64e0cc2e7d4efa888147d8d8
parent30e40c1a115dac28d2b2963bbc036c1cba15b0f8
formdata: cleanups

- use memchr() instead of for() loop
- add and use free_formlist() instead of duplicate code
- shorten some variable names
- reduce flag struct field from 'long' to 'unsigned char'
- pass in struct pointer, not individual fields, to addhttppost()

Closes #17370
lib/formdata.c
lib/formdata.h