From 5a869edb0fa3a79c0b4bf6e389afaa660c7f3bd8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 14 May 2026 21:57:02 +0200 Subject: [PATCH] creds: drop redundant `CURL_UNCONST()`s Follow-up to 8f71d0fde515aa4c68002477356c35bd79927729 #21548 Closes #21612 --- lib/creds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/creds.c b/lib/creds.c index 4767527ed9..1362f92c79 100644 --- a/lib/creds.c +++ b/lib/creds.c @@ -77,19 +77,19 @@ CURLcode Curl_creds_create(const char *user, buf = ((char *)creds) + offsetof(struct Curl_creds, buf); creds->user = s = buf; if(ulen) - memcpy(s, CURL_UNCONST(user), ulen + 1); + memcpy(s, user, ulen + 1); creds->passwd = s = buf + ulen + 1; if(plen) - memcpy(s, CURL_UNCONST(passwd), plen + 1); + memcpy(s, passwd, plen + 1); creds->oauth_bearer = s = buf + ulen + 1 + plen + 1; if(olen) - memcpy(s, CURL_UNCONST(oauth_bearer), olen + 1); + memcpy(s, oauth_bearer, olen + 1); creds->sasl_authzid = s = buf + ulen + 1 + plen + 1 + olen + 1; if(salen) - memcpy(s, CURL_UNCONST(sasl_authzid), salen + 1); + memcpy(s, sasl_authzid, salen + 1); creds->sasl_service = s = buf + ulen + 1 + plen + 1 + olen + 1 + salen + 1; if(sslen) - memcpy(s, CURL_UNCONST(sasl_service), sslen + 1); + memcpy(s, sasl_service, sslen + 1); out: if(!result)