shared/wall: several cleanups
authorMike Yuan <me@yhndnzj.com>
Fri, 8 Sep 2023 11:16:46 +0000 (19:16 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 8 Sep 2023 19:19:22 +0000 (03:19 +0800)
commit056aff96b929803705ff946618810986e13ff49a
treef30747dee994db72f1e1c0d83be22fb05e89e16e
parent8b2d2193164236c725f4afce79103c83cf80bff8
shared/wall: several cleanups

Follow-up for 53c0397b1dbc95f144d9a551c2086d132933e8ce

* Split do_wall into wall_utmp and wall_logind
* Don't pass unused arguments
* Add missing asserts
* Modernize error handling
* Don't do anything if neither utmp nor logind is enabled
src/shared/wall.c
src/shared/wall.h