Minor code improvements

This commit is contained in:
topjohnwu
2018-11-05 14:37:47 -05:00
parent 0742901cd2
commit 9fe5f37337
4 changed files with 23 additions and 23 deletions

View File

@@ -113,7 +113,7 @@ static int init_resetprop() {
}
static void print_props(bool persist) {
auto prop_list = Array<prop_t>();
Array<prop_t> prop_list;
getprop(collect_props, &prop_list, persist);
prop_list.sort();
for (auto &prop : prop_list)
@@ -159,7 +159,7 @@ void getprop(void (*callback)(const char *, const char *, void *), void *cookie,
__system_property_foreach(read_props, &read_cb);
if (persist) {
read_cb.cb = collect_unique_props;
persist_getprop_all(&read_cb);
persist_getprop(&read_cb);
}
}