]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
creds: drop redundant `CURL_UNCONST()`s
authorViktor Szakats <commit@vsz.me>
Thu, 14 May 2026 19:57:02 +0000 (21:57 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 14 May 2026 23:37:38 +0000 (01:37 +0200)
Follow-up to 8f71d0fde515aa4c68002477356c35bd79927729 #21548

Closes #21612

lib/creds.c

index 4767527ed945bf0d7dfdfeec9e0a3c08cf99c239..1362f92c7905934de7b8d1e3f12e9dc93dcb53ec 100644 (file)
@@ -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)