File libxcrypt-fix-const-qualifiers.patch of Package libxcrypt
Index: libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c
===================================================================
--- libxcrypt-4.5.2.orig/lib/crypt-gost-yescrypt.c
+++ libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c
@@ -131,7 +131,7 @@ crypt_gost_yescrypt_rn (const char *phra
intbuf->outbuf[1] = 'g';
/* extract yescrypt output from "$y$param$salt$output" */
- char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
+ char *hptr = strchr ((char *) intbuf->retval + 3, '$');
if (!hptr)
{
errno = EINVAL;
Index: libxcrypt-4.5.2/lib/crypt-sm3-yescrypt.c
===================================================================
--- libxcrypt-4.5.2.orig/lib/crypt-sm3-yescrypt.c
+++ libxcrypt-4.5.2/lib/crypt-sm3-yescrypt.c
@@ -136,7 +136,7 @@ crypt_sm3_yescrypt_rn (const char *phras
intbuf->outbuf[3] = '3';
/* extract yescrypt output from "$y$param$salt$output" */
- char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
+ char *hptr = strchr ((char *) intbuf->retval + 3, '$');
if (!hptr)
{
errno = EINVAL;