Fixes:
execstack.c: In function ‘execstack_make_rdwr’:
execstack.c:127:17: error: passing argument 1 of ‘asprintf’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  127 |       asprintf (&prelink_path, "%s/%s", dirname, PRELINK_PROG EXEEXT);
      |                 ^~~~~~~~~~~~~
      |                 |
      |                 const char **
In file included from execstack.c:10:
/usr/include/stdio.h:403:40: note: expected ‘char ** restrict’ but argument is 
of type ‘const char **’
  403 | extern int asprintf (char **__restrict __ptr,
      |                      ~~~~~~~~~~~~~~~~~~^~~~~

Signed-off-by: James Hilliard <james.hillia...@gmail.com>
---
 src/execstack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/execstack.c b/src/execstack.c
index fe044c5..4a8b916 100644
--- a/src/execstack.c
+++ b/src/execstack.c
@@ -41,7 +41,7 @@ const char *program_path;
 
 /* The full pathname of the prelink tool, or NULL if it hasn't been
    computed yet.  */
-const char *prelink_path;
+char *prelink_path;
 
 static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63250): https://lists.yoctoproject.org/g/yocto/message/63250
Mute This Topic: https://lists.yoctoproject.org/mt/106414294/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to