]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/cgroup: constify CGROUP_TASKS_MAX_UNSET
authorMike Yuan <me@yhndnzj.com>
Sat, 5 Jul 2025 21:27:54 +0000 (23:27 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 7 Jul 2025 15:54:38 +0000 (17:54 +0200)
src/core/cgroup.h

index dc5aaee58034b490a0ace9dff79309ee882091e7..ffd39cda402d9bcd4044a327ebca676a9ed68079 100644 (file)
@@ -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;