diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-30 15:17:54 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-17 13:36:38 +0000 |
commit | 6c52fa139c5ad8f78ed4fdb306a6074228dbf4c9 (patch) | |
tree | 9d51172c8860a72e5081dc2706dd30f4dd295427 /apps/menus/theme_menu.c | |
parent | 701e262d3d622898279167ba909da631ac460bc1 (diff) | |
download | rockbox-6c52fa139c5ad8f78ed4fdb306a6074228dbf4c9.tar.gz rockbox-6c52fa139c5ad8f78ed4fdb306a6074228dbf4c9.zip |
Remove browse_context_init()
Prefer to use designated initializers to avoid having to specify
unneeded parameters. Non-initialized members are zero-initialized
by the compiler.
Change-Id: Ia6a03c45cb3ef0b30f458d7d0ae1604a350c737c
Diffstat (limited to 'apps/menus/theme_menu.c')
-rw-r--r-- | apps/menus/theme_menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 60a2a27ef4..1b501452d0 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c | |||
@@ -249,9 +249,12 @@ int browse_folder(void *param) | |||
249 | char selected[MAX_FILENAME+10]; | 249 | char selected[MAX_FILENAME+10]; |
250 | const struct browse_folder_info *info = | 250 | const struct browse_folder_info *info = |
251 | (const struct browse_folder_info*)param; | 251 | (const struct browse_folder_info*)param; |
252 | struct browse_context browse; | 252 | |
253 | browse_context_init(&browse, info->show_options, 0, | 253 | struct browse_context browse = { |
254 | NULL, NOICON, info->dir, NULL); | 254 | .dirfilter = info->show_options, |
255 | .icon = Icon_NOICON, | ||
256 | .root = info->dir, | ||
257 | }; | ||
255 | 258 | ||
256 | /* if we are in a special settings folder, center the current setting */ | 259 | /* if we are in a special settings folder, center the current setting */ |
257 | switch(info->show_options) | 260 | switch(info->show_options) |