remove useless variable
This commit is contained in:
parent
b3902ca178
commit
afc73c920d
4
std.c
4
std.c
@ -264,7 +264,6 @@ ungetch(int c) {
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, char *argv[]) {
|
||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
int r;
|
|
||||||
|
|
||||||
if(argc == 2 && !strcmp("-v", argv[1])) {
|
if(argc == 2 && !strcmp("-v", argv[1])) {
|
||||||
fprintf(stderr, "std-"VERSION", © 2008 Matthias-Christian Ott\n");
|
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(STDIN_FILENO, &rfds);
|
||||||
FD_SET(ptm, &rfds);
|
FD_SET(ptm, &rfds);
|
||||||
for(;;) {
|
for(;;) {
|
||||||
r = select(ptm + 1, &rfds, NULL, NULL, NULL);
|
if(select(ptm + 1, &rfds, NULL, NULL, NULL) == -1)
|
||||||
if(r == -1)
|
|
||||||
err(EXIT_FAILURE, "cannot select");
|
err(EXIT_FAILURE, "cannot select");
|
||||||
if(FD_ISSET(ptm, &rfds)) {
|
if(FD_ISSET(ptm, &rfds)) {
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user