gentoo/dev-db/recutils/files/recutils-1.9-add-const.patch
NHOrus 327a205037
dev-db/recutils: Fix incompatible pointer types and remove .la files
Closes: https://bugs.gentoo.org/941097
Closes: https://bugs.gentoo.org/941542
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40715
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-24 21:28:26 +00:00

15 lines
487 B
Diff

Cast bash-generated argv from char ** to const char ** so it would be of the same
type argv was declared
https://bugs.gentoo.org/941542
--- a/bash/testrec.c
+++ b/bash/testrec.c
@@ -60,7 +60,7 @@
/* Get arguments and verify them. */
- argv = make_builtin_argv (list, &argc);
+ argv = (const char**)make_builtin_argv (list, &argc);
if ((argc != 3)
|| ((strcmp (argv[0], "[%") == 0) && ((strlen (argv[2]) == 2) && ((argv[2][0] != '%') || (argv[2][1] != ']')))))
{