summaryrefslogtreecommitdiff
path: root/boot/scene.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 19:22:27 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 19:54:50 +0300
commitdef898c458e65a71fb64cda370b4281cd026e48c (patch)
treefaea7eccfc9db4cee0dbcf4b3675b0d6acc5ae23 /boot/scene.c
parentd2043b5682558e81aa699ec5c5322a08d577aa86 (diff)
downloadu-boot-def898c458e65a71fb64cda370b4281cd026e48c.tar.xz
expo: Convert to using a string ID for the scene title
This is easier to deal with if it uses the existing string handling, since we will be able to use translations, etc. in the future. Update it to use an ID instead of a string. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene.c')
-rw-r--r--boot/scene.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/boot/scene.c b/boot/scene.c
index 030f6aa2a0..d2f77c008c 100644
--- a/boot/scene.c
+++ b/boot/scene.c
@@ -65,16 +65,12 @@ void scene_destroy(struct scene *scn)
scene_obj_destroy(obj);
free(scn->name);
- free(scn->title);
free(scn);
}
-int scene_title_set(struct scene *scn, const char *title)
+int scene_title_set(struct scene *scn, uint id)
{
- free(scn->title);
- scn->title = strdup(title);
- if (!scn->title)
- return log_msg_ret("tit", -ENOMEM);
+ scn->title_id = id;
return 0;
}