]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootspec: normalize function names/parameter lists 22843/head
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 16:15:50 +0000 (17:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 28 Mar 2022 14:02:15 +0000 (16:02 +0200)
commitaf9ae7502614741601565ba94569570363d9ac39
tree5b883f4d614f01ada38e3ad09e5c2d8f315d6325
parent3f8e42c03828ff2da0392111b394fac6f5d3c3da
bootspec: normalize function names/parameter lists

This normalizes naming of functions operating on BootConfig objects.
Let's always call them boot_config_xyz(), like our usual way to name
stuff.

moreover, move the BootConfig parameter to the beginning, as it's not a
return value (which we typically move to the end of the parameter list),
but simply an object, that even happens to be initialized already.

With these changes the functions are more like our usual way to call
things, and less surprises are good.
src/boot/bootctl.c
src/login/logind-dbus.c
src/shared/bootspec.c
src/shared/bootspec.h
src/systemctl/systemctl-start-special.c
src/test/test-bootspec.c