homework: split home_unshare_and_mount() in two
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Oct 2021 14:08:26 +0000 (16:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Oct 2021 14:09:50 +0000 (16:09 +0200)
commit7cb791bcac6240f2f3aab1438aa11c9b4cfaa658
tree1484e6b4a7200fa094b933792cd5a973a9aa9ffd
parentbaa41cee77bdf6e441e2a52a7c01c369854bc43a
homework: split home_unshare_and_mount() in two

Previously the call did two things, and the second thing was optional
(depending on first arg being NULL). Let's simplify this and just make
it two distinct functions, where one calls the other.

This should make things a bit more readable, given that we called a
function called "…and_mount()" which didn't actually mount...

No actual code changes, just some refactoring.
src/home/homework-cifs.c
src/home/homework-mount.c
src/home/homework-mount.h