diff options
author | Matthias-Christian Ott <ott@enolink.de> | 2008-07-05 13:29:21 +0200 |
---|---|---|
committer | Matthias-Christian Ott <ott@enolink.de> | 2008-07-05 13:29:21 +0200 |
commit | f917857f4eff0518c27aa0c2d5361e487f896528 (patch) | |
tree | d1872583e1f4a7319da99cbc4b22b541943ae006 /std.c | |
parent | eb92c4da84a8405384942fb9722c84f73e6162f2 (diff) | |
download | st-f917857f4eff0518c27aa0c2d5361e487f896528.tar.gz st-f917857f4eff0518c27aa0c2d5361e487f896528.tar.bz2 |
remove useless variable
Diffstat (limited to 'std.c')
-rw-r--r-- | std.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -264,7 +264,6 @@ ungetch(int c) { int main(int argc, char *argv[]) { fd_set rfds; - int r; if(argc == 2 && !strcmp("-v", argv[1])) { fprintf(stderr, "std-"VERSION", © 2008 Matthias-Christian Ott\n"); @@ -280,8 +279,7 @@ main(int argc, char *argv[]) { FD_SET(STDIN_FILENO, &rfds); FD_SET(ptm, &rfds); for(;;) { - r = select(ptm + 1, &rfds, NULL, NULL, NULL); - if(r == -1) + if(select(ptm + 1, &rfds, NULL, NULL, NULL) == -1) err(EXIT_FAILURE, "cannot select"); if(FD_ISSET(ptm, &rfds)) { do { |