aboutsummaryrefslogtreecommitdiff
path: root/toys/android/start.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-12-27 12:17:50 -0800
committerRob Landley <rob@landley.net>2016-12-28 22:49:26 -0600
commit45c6b12a0a0f09054ab1fee9197860aee27b2e8a (patch)
treeb7344397bfec65ea96d8f0ef6220bde442e661ec /toys/android/start.c
parent6bce3be4a3fcb1c3b01d86ffaec2b605c692822d (diff)
downloadtoybox-45c6b12a0a0f09054ab1fee9197860aee27b2e8a.tar.gz
Switch to bionic <sys/system_properties.h>.
Removes the dependency on libcutils for everything except ps.
Diffstat (limited to 'toys/android/start.c')
-rw-r--r--toys/android/start.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/android/start.c b/toys/android/start.c
index 20fa2b9e..f6b3c379 100644
--- a/toys/android/start.c
+++ b/toys/android/start.c
@@ -27,7 +27,7 @@ config STOP
#define FOR_start
#include "toys.h"
-#include <cutils/properties.h>
+#include <sys/system_properties.h>
static void start_stop(int start)
{
@@ -46,7 +46,7 @@ static void start_stop(int start)
}
for (; *ss; ss += direction)
- if (property_set(property, *ss))
+ if (__system_property_set(property, *ss))
error_exit("failed to set property '%s' to '%s'", property, *ss);
}