From 65df8be24b3ed2691945215e81eaba2c8c7f2d41 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 5 Jul 2025 23:27:54 +0200 Subject: [PATCH] core/cgroup: constify CGROUP_TASKS_MAX_UNSET --- src/core/cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.h b/src/core/cgroup.h index dc5aaee5803..ffd39cda402 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -14,7 +14,7 @@ typedef struct CGroupTasksMax { uint64_t scale; } CGroupTasksMax; -#define CGROUP_TASKS_MAX_UNSET ((CGroupTasksMax) { .value = UINT64_MAX, .scale = 0 }) +#define CGROUP_TASKS_MAX_UNSET ((const CGroupTasksMax) { .value = UINT64_MAX, .scale = 0 }) static inline bool cgroup_tasks_max_isset(const CGroupTasksMax *tasks_max) { return tasks_max->value != UINT64_MAX || tasks_max->scale != 0; -- 2.47.3