diff options
author | 0xAX <0xAX@users.noreply.github.com> | 2016-08-20 01:51:54 +0300 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-08-19 18:51:54 -0400 |
commit | e6c9fa74a5b1dc1c29797cab43a078b512438885 (patch) | |
tree | 7d25a9bcc545e010243df0ff902c17bb74b7b8e0 /src/nspawn/nspawn-expose-ports.c | |
parent | 29272c04a73b00b5420ee686d73c3bc74d29d169 (diff) |
terminal-util: remove unnecessary check of result of isatty() (#4000)
After the call of the isatty() we check its result twice in the
open_terminal(). There are no sense to check result of isatty() that
it is less than zero and return -errno, because as described in
documentation:
isatty() returns 1 if fd is an open file descriptor referring to a
terminal; otherwise 0 is returned, and errno is set to indicate the
error.
So it can't be less than zero.
Diffstat (limited to 'src/nspawn/nspawn-expose-ports.c')
0 files changed, 0 insertions, 0 deletions