]> git.ipfire.org Git - thirdparty/systemd.git/commit
timesyncd: clean up server_name_new()
authorDaniel Mack <daniel@zonque.org>
Tue, 22 Mar 2022 17:26:55 +0000 (18:26 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Apr 2022 01:23:14 +0000 (10:23 +0900)
commitfeb219c99714f5bd0b632d1699d24bbd34225ca4
treedd9fd237f5f222986dd17b731ffda7a22efdbfd5
parent5dfb11097d141dcab711fa62b5e951561038640a
timesyncd: clean up server_name_new()

Use `LIST_APPEND()` in favour of `LIST_FIND_TAIL()` + `LIST_INSERT_AFTER()`.
Also use a switch/case statement instead of if/else if.
src/timesync/timesyncd-server.c