]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: rename home_setup_undo() → home_setup_done() 21023/head
authorLennart Poettering <lennart@poettering.net>
Sat, 16 Oct 2021 12:45:42 +0000 (14:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 16 Oct 2021 12:48:10 +0000 (14:48 +0200)
commit66aa51f8f9c3d6b3283ea1c247030b5c9cb900ae
tree24992361bc096cb34ddc086cd8d9db80a055bb33
parentaa0a6214e23a3f9a2b1938e56565d94552afde04
homed: rename home_setup_undo() → home_setup_done()

This function is a destructor, hence it should be named like one.

(We usually use xyz_free() for a destructor that frees the object passed
itself. xyz_unref() we typically use for destructors that are similar,
but ref counted. xyz_done() usually is used for destructors which free
the members of an object, but not the object itself – to allow stack
allocation of objects. We don't strictly follow this, but it's good to
stick to rules wherever we can.)

No actual code change, just renaming.
src/home/homework-cifs.c
src/home/homework-directory.c
src/home/homework-luks.c
src/home/homework.c
src/home/homework.h