]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: correct argument comments
authorJelle van der Waa <jvanderwaa@redhat.com>
Tue, 6 May 2025 10:27:00 +0000 (12:27 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Tue, 6 May 2025 14:26:29 +0000 (16:26 +0200)
src/core/automount.c
src/core/cgroup.c
src/core/namespace.c
src/core/unit.c

index feb97a9f99b2abdf3617898b661087c7b44d4459..c3f4b6b72c67f968f33ad129eeaa047afce89f38 100644 (file)
@@ -661,7 +661,7 @@ static int asynchronous_expire(int dev_autofs_fd, int ioctl_fd) {
                            (int[]) { dev_autofs_fd, ioctl_fd },
                            /* n_except_fds= */ 2,
                            FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_REOPEN_LOG,
-                           /* pid= */ NULL);
+                           /* ret_pid= */ NULL);
         if (r != 0)
                 return r;
 
index e37bf46e876f1dfd25a05f00bc5e3d851b61d308..2a74380a283d59693ea1362304271323949b8bf6 100644 (file)
@@ -3056,7 +3056,7 @@ int unit_check_oomd_kill(Unit *u) {
                                 LOG_UNIT_INVOCATION_ID(u),
                                 LOG_UNIT_MESSAGE(u, "systemd-oomd killed some process(es) in this unit."));
 
-        unit_notify_cgroup_oom(u, /* ManagedOOM= */ true);
+        unit_notify_cgroup_oom(u, /* managed_oom= */ true);
 
         return 1;
 }
@@ -3098,7 +3098,7 @@ int unit_check_oom(Unit *u) {
                         LOG_UNIT_INVOCATION_ID(u),
                         LOG_UNIT_MESSAGE(u, "A process of this unit has been killed by the OOM killer."));
 
-        unit_notify_cgroup_oom(u, /* ManagedOOM= */ false);
+        unit_notify_cgroup_oom(u, /* managed_oom= */ false);
 
         return 1;
 }
index 6cf92b1773967b1422e555651f145f6f505e20d8..381de7528a8ea82392540196edef0c9eb77d16a3 100644 (file)
@@ -1333,7 +1333,7 @@ static int mount_private_apivfs(
                 /* We lack permissions to mount a new instance, and it is not already mounted. But we can
                  * access the host's, so as a final fallback bind-mount it to the destination, as most likely
                  * we are inside a user manager in an unprivileged user namespace. */
-                r = mount_nofollow_verbose(LOG_DEBUG, bind_source, entry_path, /* fstype = */ NULL, MS_BIND|MS_REC, /* opts = */ NULL);
+                r = mount_nofollow_verbose(LOG_DEBUG, bind_source, entry_path, /* fstype = */ NULL, MS_BIND|MS_REC, /* options = */ NULL);
                 if (r < 0)
                         return r;
 
@@ -1348,7 +1348,7 @@ static int mount_private_apivfs(
                 log_debug_errno(r, "Failed to unmount directories below '%s', ignoring: %m", entry_path);
 
         /* Then, move the new mount instance. */
-        r = mount_nofollow_verbose(LOG_DEBUG, temporary_mount, entry_path, /* fstype = */ NULL, MS_MOVE, /* opts = */ NULL);
+        r = mount_nofollow_verbose(LOG_DEBUG, temporary_mount, entry_path, /* fstype = */ NULL, MS_MOVE, /* options = */ NULL);
         if (r < 0)
                 return r;
 
index b42b40250f5e5fb349466d8c83b010d401344236..6eda7b64aa62f27aeb89184d4769906e907559ca 100644 (file)
@@ -4170,7 +4170,7 @@ PresetAction unit_get_unit_file_preset(Unit *u) {
                                 u->manager->runtime_scope,
                                 /* root_dir= */ NULL,
                                 bn,
-                                /* cache= */ NULL));
+                                /* cached= */ NULL));
 }
 
 Unit* unit_ref_set(UnitRef *ref, Unit *source, Unit *target) {