From 975a08f9b988cfc628d1941ae8fec5e6b46ba949 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 2 Jun 2025 03:14:36 +0200 Subject: [PATCH WIP v2 08/10] fftools/resources/resman: Constify ret of ff_resman_get_string() Signed-off-by: Andreas Rheinhardt --- fftools/resources/resman.c | 4 ++-- fftools/resources/resman.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/resources/resman.c b/fftools/resources/resman.c index 1de98475c3..aa99e07f50 100644 --- a/fftools/resources/resman.c +++ b/fftools/resources/resman.c @@ -95,12 +95,12 @@ void ff_resman_uninit(void) } -char *ff_resman_get_string(FFResourceId resource_id) +const char *ff_resman_get_string(FFResourceId resource_id) { ResourceManagerContext *ctx = &resman_ctx; const FFResourceDefinition *resource_definition = NULL; AVDictionaryEntry *dic_entry; - char *res = NULL; + const char *res = NULL; for (unsigned i = 0; i < FF_ARRAY_ELEMS(resource_definitions); ++i) { const FFResourceDefinition *def = &resource_definitions[i]; diff --git a/fftools/resources/resman.h b/fftools/resources/resman.h index ad57a10204..d41c89ce37 100644 --- a/fftools/resources/resman.h +++ b/fftools/resources/resman.h @@ -43,6 +43,6 @@ typedef struct FFResourceDefinition { void ff_resman_uninit(void); -char *ff_resman_get_string(FFResourceId resource_id); +const char *ff_resman_get_string(FFResourceId resource_id); #endif /* FFTOOLS_RESOURCES_RESMAN_H */ -- 2.45.2