systemctl: drop unsused variable original_stdout_is_tty
Unused since de9a8fe18e
.
This commit is contained in:
parent
816d460a7c
commit
b8aaceb9b5
|
@ -191,8 +191,6 @@ static int trivial_method(int argc, char *argv[], void *userdata);
|
||||||
static int halt_now(enum action a);
|
static int halt_now(enum action a);
|
||||||
static int get_state_one_unit(sd_bus *bus, const char *name, UnitActiveState *active_state);
|
static int get_state_one_unit(sd_bus *bus, const char *name, UnitActiveState *active_state);
|
||||||
|
|
||||||
static bool original_stdout_is_tty;
|
|
||||||
|
|
||||||
typedef enum BusFocus {
|
typedef enum BusFocus {
|
||||||
BUS_FULL, /* The full bus indicated via --system or --user */
|
BUS_FULL, /* The full bus indicated via --system or --user */
|
||||||
BUS_MANAGER, /* The manager itself, possibly directly, possibly via the bus */
|
BUS_MANAGER, /* The manager itself, possibly directly, possibly via the bus */
|
||||||
|
@ -9401,11 +9399,6 @@ static int run(int argc, char *argv[]) {
|
||||||
|
|
||||||
sigbus_install();
|
sigbus_install();
|
||||||
|
|
||||||
/* Explicitly not on_tty() to avoid setting cached value.
|
|
||||||
* This becomes relevant for piping output which might be
|
|
||||||
* ellipsized. */
|
|
||||||
original_stdout_is_tty = isatty(STDOUT_FILENO);
|
|
||||||
|
|
||||||
r = parse_argv(argc, argv);
|
r = parse_argv(argc, argv);
|
||||||
if (r <= 0)
|
if (r <= 0)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
Loading…
Reference in New Issue