diff options
author | ed <ed@FreeBSD.org> | 2010-01-02 10:13:21 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-02 10:13:21 +0000 |
commit | 0db0a6763d69dfad476e262e21fe33bc924763ee (patch) | |
tree | f31d67a98a48774ef9aafd050d1d1899aea187fd /usr.bin/script/script.c | |
parent | 2f011fb7c4680704999c0fe0bb37bdbcd1cf975f (diff) | |
download | FreeBSD-src-0db0a6763d69dfad476e262e21fe33bc924763ee.zip FreeBSD-src-0db0a6763d69dfad476e262e21fe33bc924763ee.tar.gz |
Remove a warning by adding extra parentheses.
GCC generates warnings when using "if (foo = bar)". In this case its use
is valid.
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index ad706dc..bd2de28 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -126,7 +126,7 @@ main(int argc, char *argv[]) if ((fscript = fopen(fname, aflg ? "a" : "w")) == NULL) err(1, "%s", fname); - if (ttyflg = isatty(STDIN_FILENO)) { + if ((ttyflg = isatty(STDIN_FILENO)) != 0) { if (tcgetattr(STDIN_FILENO, &tt) == -1) err(1, "tcgetattr"); if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == -1) |