core/execute: mark exec_context_fdname() as pure

This commit is contained in:
Mike Yuan
2025-10-29 21:33:13 +01:00
parent 2fd2d8d575
commit e984e2ca26

View 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);