This function was returning 0 or 1 on success. It has many callers, and it wasn't clear if any of them care about the distinction. It turns out they don't and the return values were done for convenience because manager_load_unit_prepare() returns 0 or 1. Let's invert the code in the static function to follow the usual pattern where 0 means "no work was done" and 1 means "work was done", and make the non-static function always return 0 to make the code easier to read, and also add comments that explain what is happening. No functional change.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
