]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/execute: mark exec_context_fdname() as pure
authorMike Yuan <me@yhndnzj.com>
Wed, 29 Oct 2025 20:33:13 +0000 (21:33 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 15:12:13 +0000 (16:12 +0100)
src/core/execute.h

index 2908c29a3735a7ccde85219afe8a142dce92ed87..97ba9f76ff00aa0088e22ecac4dbdd93d77c3636 100644 (file)
@@ -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);