]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
loginctl: realign bus_properties_map
authorMike Yuan <me@yhndnzj.com>
Thu, 25 May 2023 10:25:15 +0000 (18:25 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 26 May 2023 05:29:55 +0000 (13:29 +0800)
src/login/loginctl.c

index 81bb8f48ddf2ff7534dfb59683047e23fa77ff89..5fb567081b2695b8035f2bdd14cf418fdc2e79eb 100644 (file)
@@ -692,9 +692,9 @@ static int print_user_status_info(sd_bus *bus, const char *path, bool *new_line)
 static int print_seat_status_info(sd_bus *bus, const char *path, bool *new_line) {
 
         static const struct bus_properties_map map[] = {
-                { "Id",            "s",     NULL, offsetof(SeatStatusInfo, id) },
+                { "Id",            "s",     NULL,                     offsetof(SeatStatusInfo, id)             },
                 { "ActiveSession", "(so)",  prop_map_first_of_struct, offsetof(SeatStatusInfo, active_session) },
-                { "Sessions",      "a(so)", prop_map_sessions_strv, offsetof(SeatStatusInfo, sessions) },
+                { "Sessions",      "a(so)", prop_map_sessions_strv,   offsetof(SeatStatusInfo, sessions)       },
                 {}
         };