]> git.ipfire.org Git - thirdparty/systemd.git/commit
fundamental: make strverscmp_improved() return -1/0/+1 in all cases
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 May 2022 12:19:19 +0000 (14:19 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 May 2022 14:33:43 +0000 (16:33 +0200)
commitdbf43adce2863e4362d6fa286bf77fd2dc47cdc1
treea8346480332bda613321dd72a0987c8b48e43650
parente77a55c599824df0f1dbbda0d2e4b920760c26ca
fundamental: make strverscmp_improved() return -1/0/+1 in all cases

We would return the result of strcmp(), i.e. some positive/negative value.
Now that we want to make this a documented interface for other people
to implement, let's make the implementation more contstrained, even if
we ourselves don't care about whether the specific values.
src/fundamental/string-util-fundamental.c