]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: rename gather_pid_mount_tree_fd() → acquire_pid_mount_tree_fd() 34975/head
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2024 09:05:32 +0000 (10:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2024 09:07:55 +0000 (10:07 +0100)
From my understanding of the english language "gather" imples there are
multiple things to gather. But here there's only one, hence use
"acquire"

src/coredump/coredump.c

index 7782839c2dc1993c037a0355138ae092662fe16b..6970a6a89881223e4e55c0957150bbf1d2608789 100644 (file)
@@ -1688,7 +1688,7 @@ static int forward_coredump_to_container(Context *context) {
         return 0;
 }
 
-static int gather_pid_mount_tree_fd(const Context *context, int *ret_fd) {
+static int acquire_pid_mount_tree_fd(const Context *context, int *ret_fd) {
         /* Don't bother preparing environment if we can't pass it to libdwfl. */
 #if !HAVE_DWFL_SET_SYSROOT
         *ret_fd = -EOPNOTSUPP;
@@ -1809,7 +1809,7 @@ static int process_kernel(int argc, char* argv[]) {
                 if (r >= 0)
                         return 0;
 
-                r = gather_pid_mount_tree_fd(&context, &context.mount_tree_fd);
+                r = acquire_pid_mount_tree_fd(&context, &context.mount_tree_fd);
                 if (r < 0)
                         log_warning_errno(r, "Failed to access the mount tree of a container, ignoring: %m");
         }