From: Mike Yuan Date: Wed, 29 Oct 2025 20:33:13 +0000 (+0100) Subject: core/execute: mark exec_context_fdname() as pure X-Git-Tag: v259-rc1~217^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e984e2ca26e8097c6cef6cc56addaa3416bb5617;p=thirdparty%2Fsystemd.git core/execute: mark exec_context_fdname() as pure --- 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);