tidy-up: move CURL_UNCONST() out from macro curl_unicodefree()

To stop applying it where not needed (most uses) and make it visible
where it's actually used (5 uses).

Follow-up to f4e23950c7 #16142

Closes #19606
This commit is contained in:
Viktor Szakats 2025-11-19 13:30:25 +01:00
parent b0d23b901f
commit 47b8e1dbd3
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 6 additions and 6 deletions

View file

@ -78,6 +78,6 @@ typedef union {
#endif /* UNICODE && _WIN32 */
/* the purpose of this macro is to free() without being traced by memdebug */
#define curlx_unicodefree(ptr) (free)(CURL_UNCONST(ptr))
#define curlx_unicodefree(ptr) (free)(ptr)
#endif /* HEADER_CURL_MULTIBYTE_H */