From e984e2ca26e8097c6cef6cc56addaa3416bb5617 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 29 Oct 2025 21:33:13 +0100 Subject: [PATCH] core/execute: mark exec_context_fdname() as pure --- src/core/execute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execute.h b/src/core/execute.h index 2908c29a373..97ba9f76ff0 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -518,7 +518,7 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix); int exec_context_destroy_runtime_directory(const ExecContext *c, const char *runtime_root); int exec_context_destroy_mount_ns_dir(Unit *u); -const char* exec_context_fdname(const ExecContext *c, int fd_index); +const char* exec_context_fdname(const ExecContext *c, int fd_index) _pure_; bool exec_context_may_touch_console(const ExecContext *c); bool exec_context_maintains_privileges(const ExecContext *c); -- 2.47.3