diff options
author | Rob Landley <rob@landley.net> | 2017-02-05 00:53:13 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-02-05 00:53:13 -0600 |
commit | b4944cab5213e47be222f23dd60e86644e4f2186 (patch) | |
tree | ac0bbb39eae32a53c62ea36c67536b4a7c368994 /toys | |
parent | 4a4b3d65644ce403b0f22887fc0d38b0202ec8c7 (diff) | |
download | toybox-b4944cab5213e47be222f23dd60e86644e4f2186.tar.gz |
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.)
Diffstat (limited to 'toys')
-rw-r--r-- | toys/android/getprop.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |