pam-systemd: split up weight helper funcs
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2023 21:48:50 +0000 (22:48 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 Feb 2023 22:54:12 +0000 (22:54 +0000)
commite7906abeb81a85d1783a3913ca921484bbbb30ba
treeb678784bc314df37523cc3b39bd2c6c47d77ba86
parent01e4f03f344856c103626e309d79321aa3e81641
pam-systemd: split up weight helper funcs

There are three conditionalizations in the status quo ante function,
which kinda indicates this should not be the same function in the first
place. Hence split this up, simplify it, and have two distinct functions
without conditionalizations.
src/login/pam_systemd.c