send: drop CURL_UNCONST() from buffer argument on most platforms

Keep it on platforms requiring a non-const buffer. These are AmigaOS and
OS400.

Also:
- replace `SEND_QUAL_ARG2` with boolean macro `SEND_NONCONST_ARG2`.

Closes #20463
This commit is contained in:
Viktor Szakats 2026-01-28 15:24:09 +01:00
parent d60f1006b0
commit f95c79a988
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 16 additions and 26 deletions

View file

@ -1582,13 +1582,6 @@ $! Process SEND directives
$!-------------------------------------
$ if key2a .eqs. "SEND"
$ then
$ if key2 .eqs. "SEND_QUAL_ARG2"
$ then
$ write tf "#ifndef ''key2'"
$ write tf "#define ''key2' const"
$ write tf "#endif"
$ goto cfgh_in_loop1
$ endif
$ if key2 .eqs. "SEND_TYPE_ARG1"
$ then
$ write tf "#ifndef ''key2'"