]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi: drop "ret_" prefix from "ret_sections[]" parameter
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Jul 2024 15:01:26 +0000 (17:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Jul 2024 14:15:04 +0000 (16:15 +0200)
commit1beaaeab2fde2ae4d1a948e661241ca11096167e
tree27277a8d34347e5e35d7a55006c0632eb2ac0105
parentd30b89c7fc46d87774fd6eb6770c1e024b97395c
efi: drop "ret_" prefix from "ret_sections[]" parameter

While we write data to this parameter, it's not really a return
parameter, we after all do not fully set it, we just fill in some
fields. Hence it must be initialized beforehand.

According to our coding style only parameters that are purely used for
returning something should be named "ret_xyz", hence this one should not
be.

(We'll later rely on the current behaviour that it leaves array entries
for which we find no sections untouched, hence leave behaviour as is,
just rename the parameters to something more appropriate).

(Since we are dropping the "ret_" prefix of "ret_sections", let's rename
the old "section" parameter at the same time to "section_names", to make
clearer what it is about).
src/boot/efi/pe.c
src/boot/efi/pe.h