]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/manager: constify DEFAULT_TASKS_MAX
authorMike Yuan <me@yhndnzj.com>
Mon, 1 Dec 2025 04:16:13 +0000 (05:16 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 18 Dec 2025 16:37:25 +0000 (17:37 +0100)
src/core/manager.c

index 7938c989af17da36b25472dba1cdf0aef1a598b4..594e7bc2c7566c47b116e3823e303f2e7e42eae8 100644 (file)
 /* How many units and jobs to process of the bus queue before returning to the event loop. */
 #define MANAGER_BUS_MESSAGE_BUDGET 100U
 
-#define DEFAULT_TASKS_MAX ((CGroupTasksMax) { 15U, 100U }) /* 15% */
+#define DEFAULT_TASKS_MAX ((const CGroupTasksMax) { 15U, 100U }) /* 15% */
 
 static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
 static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);