summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-15 23:55:39 +0100
committerAidan MacDonald <amachronic@protonmail.com>2023-01-13 10:32:54 +0000
commit1e9ad3ca0d9bf3e917eb2beb460421155144760a (patch)
tree752590b42f338f03223e024fc5b642ac9a8a5598 /apps/tree.c
parent3301c5aa6db76832dbb9af8f72d29b348190fd91 (diff)
downloadrockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.tar.gz
rockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.zip
Remove buflib allocation names, part two
Remove allocation names from the buflib API and fix up all callers. Change-Id: I3df922e258d5f0d711d70e72b56b4ed634fb0f5a
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 22199710ae..d2a7111e5f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1063,14 +1063,11 @@ void tree_mem_init(void)
1063 1063
1064 cache->name_buffer_size = AVERAGE_FILENAME_LENGTH * 1064 cache->name_buffer_size = AVERAGE_FILENAME_LENGTH *
1065 global_settings.max_files_in_dir; 1065 global_settings.max_files_in_dir;
1066 cache->name_buffer_handle = core_alloc_ex("tree names", 1066 cache->name_buffer_handle = core_alloc_ex(cache->name_buffer_size, &ops);
1067 cache->name_buffer_size,
1068 &ops);
1069 1067
1070 cache->max_entries = global_settings.max_files_in_dir; 1068 cache->max_entries = global_settings.max_files_in_dir;
1071 cache->entries_handle = core_alloc_ex("tree entries", 1069 cache->entries_handle =
1072 cache->max_entries*(sizeof(struct entry)), 1070 core_alloc_ex(cache->max_entries*(sizeof(struct entry)), &ops);
1073 &ops);
1074} 1071}
1075 1072
1076bool bookmark_play(char *resume_file, int index, unsigned long elapsed, 1073bool bookmark_play(char *resume_file, int index, unsigned long elapsed,