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 | afc73c920df958dabaf1e8e544be47cbe9c919ce (patch) | |
tree | d1872583e1f4a7319da99cbc4b22b541943ae006 | |
parent | b3902ca1782515ee8b9cd38af10e51bc3ba2fc98 (diff) | |
download | st-afc73c920df958dabaf1e8e544be47cbe9c919ce.tar.gz st-afc73c920df958dabaf1e8e544be47cbe9c919ce.zip |
remove useless variable
-rw-r--r-- | std.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -264,7 +264,6 @@ ungetch(int c) { | |||
264 | int | 264 | int |
265 | main(int argc, char *argv[]) { | 265 | main(int argc, char *argv[]) { |
266 | fd_set rfds; | 266 | fd_set rfds; |
267 | int r; | ||
268 | 267 | ||
269 | if(argc == 2 && !strcmp("-v", argv[1])) { | 268 | if(argc == 2 && !strcmp("-v", argv[1])) { |
270 | fprintf(stderr, "std-"VERSION", © 2008 Matthias-Christian Ott\n"); | 269 | fprintf(stderr, "std-"VERSION", © 2008 Matthias-Christian Ott\n"); |
@@ -280,8 +279,7 @@ main(int argc, char *argv[]) { | |||
280 | FD_SET(STDIN_FILENO, &rfds); | 279 | FD_SET(STDIN_FILENO, &rfds); |
281 | FD_SET(ptm, &rfds); | 280 | FD_SET(ptm, &rfds); |
282 | for(;;) { | 281 | for(;;) { |
283 | r = select(ptm + 1, &rfds, NULL, NULL, NULL); | 282 | if(select(ptm + 1, &rfds, NULL, NULL, NULL) == -1) |
284 | if(r == -1) | ||
285 | err(EXIT_FAILURE, "cannot select"); | 283 | err(EXIT_FAILURE, "cannot select"); |
286 | if(FD_ISSET(ptm, &rfds)) { | 284 | if(FD_ISSET(ptm, &rfds)) { |
287 | do { | 285 | do { |