From b4944cab5213e47be222f23dd60e86644e4f2186 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 5 Feb 2017 00:53:13 -0600 Subject: Patch from Elliott to silence a "const" warning in android/getprop.c. (Broken out of a larger patch, fixed the other part a different way.) --- toys/android/getprop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/android') diff --git a/toys/android/getprop.c b/toys/android/getprop.c index 51e73444..eede9373 100644 --- a/toys/android/getprop.c +++ b/toys/android/getprop.c @@ -29,7 +29,7 @@ GLOBALS( struct selabel_handle *handle; ) -static char *get_property_context(char *property) +static char *get_property_context(const char *property) { char *context = NULL; @@ -43,11 +43,11 @@ static void read_callback(void *unused, const char *name, const char *value) { if (!(TT.size&31)) TT.nv = xrealloc(TT.nv, (TT.size+32)*2*sizeof(char *)); - TT.nv[2*TT.size] = xstrdup(name); + TT.nv[2*TT.size] = xstrdup((char *)name); if (toys.optflags & FLAG_Z) { TT.nv[1+2*TT.size++] = get_property_context(name); } else { - TT.nv[1+2*TT.size++] = xstrdup(value); + TT.nv[1+2*TT.size++] = xstrdup((char *)value); } } -- cgit v1.2.3