]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: ressize -> result_size
authorLuca Boccassi <bluca@debian.org>
Mon, 6 Nov 2023 18:48:25 +0000 (18:48 +0000)
committerLuca Boccassi <bluca@debian.org>
Mon, 6 Nov 2023 18:48:25 +0000 (18:48 +0000)
Lintian flags it as a typo of 'resize', so rename it and make it clearer too

src/udev/udev-spawn.c

index 1d0b8548e3390578b6a19829898cdae2eaf75ced..67a300532518b2f24f081d58fd51a49b4b39f661 100644 (file)
@@ -227,7 +227,7 @@ int udev_event_spawn(
                 bool accept_failure,
                 const char *cmd,
                 char *result,
-                size_t ressize,
+                size_t result_size,
                 bool *ret_truncated) {
 
         _cleanup_close_pair_ int outpipe[2] = EBADF_PAIR, errpipe[2] = EBADF_PAIR;
@@ -239,7 +239,7 @@ int udev_event_spawn(
 
         assert(event);
         assert(event->dev);
-        assert(result || ressize == 0);
+        assert(result || result_size == 0);
 
         /* pipes from child to parent */
         if (result || log_get_max_level() >= LOG_INFO)
@@ -307,7 +307,7 @@ int udev_event_spawn(
                 .fd_stdout = outpipe[READ_END],
                 .fd_stderr = errpipe[READ_END],
                 .result = result,
-                .result_size = ressize,
+                .result_size = result_size,
         };
         r = spawn_wait(&spawn);
         if (r < 0)