terminal-util: change 2nd parameter of terminal_reset_defensive() to flags

let's convert the 2nd argumeng form a boolean to a proper flags
parameter. Doesn't change behaviour in anyway, but is more readable, and
prepares ground for adding more flags soon.
This commit is contained in:
Lennart Poettering
2025-02-27 15:13:15 +01:00
parent ddb503b7f6
commit 9ab703d8e1
8 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ void exec_context_tty_reset(const ExecContext *context, const ExecParameters *p)
log_warning_errno(lock_fd, "Failed to lock /dev/console, proceeding without lock: %m");
if (context->tty_reset)
(void) terminal_reset_defensive(fd, /* switch_to_text= */ true);
(void) terminal_reset_defensive(fd, TERMINAL_RESET_SWITCH_TO_TEXT);
r = exec_context_apply_tty_size(context, fd, fd, path);
if (r < 0)