]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-unit-util.c
util: move percent/permille/permyriad parser into percent-util.[ch]
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Feb 2021 14:23:15 +0000 (15:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Feb 2021 21:36:34 +0000 (22:36 +0100)
commited5033fd6c5e73a1ee874608338cbfd28b9083b4
tree2269d651893a01d4f88988d1a153b6196af30996
parent60dcf3dc1b5b4c63e2c35ad7eba1d6f7ab5e086c
util: move percent/permille/permyriad parser into percent-util.[ch]

A good chunk of parse-util.[ch] has been about parsing parts per
hundred/thousand/ten-thousand. Let's split that out into its own file.

No code changes, just some shuffling around.
16 files changed:
src/basic/meson.build
src/basic/parse-util.c
src/basic/parse-util.h
src/basic/percent-util.c [new file with mode: 0644]
src/basic/percent-util.h [new file with mode: 0644]
src/core/load-fragment.c
src/home/homectl.c
src/import/importd.c
src/login/logind-user.c
src/login/pam_systemd.c
src/network/tc/tc-util.c
src/shared/bus-unit-util.c
src/shared/conf-parser.c
src/test/meson.build
src/test/test-parse-util.c
src/test/test-percent-util.c [new file with mode: 0644]