From: Mike Yuan Date: Sat, 5 Jul 2025 21:27:54 +0000 (+0200) Subject: core/cgroup: constify CGROUP_TASKS_MAX_UNSET X-Git-Tag: v258-rc1~147^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65df8be24b3ed2691945215e81eaba2c8c7f2d41;p=thirdparty%2Fsystemd.git core/cgroup: constify CGROUP_TASKS_MAX_UNSET --- 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;