diff options
author | Elliott Hughes <enh@google.com> | 2016-12-27 12:17:50 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-12-28 22:49:26 -0600 |
commit | 45c6b12a0a0f09054ab1fee9197860aee27b2e8a (patch) | |
tree | b7344397bfec65ea96d8f0ef6220bde442e661ec /toys/android/setprop.c | |
parent | 6bce3be4a3fcb1c3b01d86ffaec2b605c692822d (diff) | |
download | toybox-45c6b12a0a0f09054ab1fee9197860aee27b2e8a.tar.gz |
Switch to bionic <sys/system_properties.h>.
Removes the dependency on libcutils for everything except ps.
Diffstat (limited to 'toys/android/setprop.c')
-rw-r--r-- | toys/android/setprop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/android/setprop.c b/toys/android/setprop.c index f29a868a..2af314aa 100644 --- a/toys/android/setprop.c +++ b/toys/android/setprop.c @@ -17,7 +17,7 @@ config SETPROP #define FOR_setprop #include "toys.h" -#include <cutils/properties.h> +#include <sys/system_properties.h> void setprop_main(void) { @@ -44,6 +44,6 @@ void setprop_main(void) if (!isalnum(*p) && !strchr("@_.-", *p)) error_exit("invalid character '%c' in name '%s'", *p, name); - if (property_set(name, value)) + if (__system_property_set(name, value)) error_msg("failed to set property '%s' to '%s'", name, value); } |