Skip to content

Commit

Permalink
loginctl: shorten variable name
Browse files Browse the repository at this point in the history
(cherry picked from commit 86f128558d57586bd28c55eb63968eab3dc4b36e)

Related: #2156786
  • Loading branch information
dtardon committed May 30, 2023
1 parent a50c280 commit 19e1625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/login/loginctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int list_sessions(int argc, char *argv[], void *userdata) {
(void) table_set_align_percent(table, TABLE_HEADER_CELL(1), 100);

for (;;) {
_cleanup_(sd_bus_error_free) sd_bus_error error_tty = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_error_free) sd_bus_error e = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply_tty = NULL;
const char *id, *user, *seat, *object, *tty = NULL;
uint32_t uid;
Expand All @@ -164,11 +164,11 @@ static int list_sessions(int argc, char *argv[], void *userdata) {
object,
"org.freedesktop.login1.Session",
"TTY",
&error_tty,
&e,
&reply_tty,
"s");
if (r < 0)
log_warning_errno(r, "Failed to get TTY for session %s: %s", id, bus_error_message(&error_tty, r));
log_warning_errno(r, "Failed to get TTY for session %s: %s", id, bus_error_message(&e, r));
else {
r = sd_bus_message_read(reply_tty, "s", &tty);
if (r < 0)
Expand Down

0 comments on commit 19e1625

Please sign in to comment.