mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-25 22:59:18 +00:00
Minor code improvements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user