systemctl: cleanups for list-sockets
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Feb 2023 06:20:20 +0000 (15:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Feb 2023 09:00:24 +0000 (18:00 +0900)
commit1b87606639bb04c6cdcc941447f595f7c1c5820a
tree214ccdffaafa44e9ff44b64c8d20508e37fcad2c
parentf2ccc0d3e1a024572563cd1bbca39ebd3ade846e
systemctl: cleanups for list-sockets

- Rename struct socket_info -> SocketInfo.
- Drop own_triggered field, and always copy the triggered field.
- Use CLEANUP_ARRAY().

No functional changes, just refactoring.
src/systemctl/systemctl-list-units.c