Remove dead assignments in switch.c

This commit is contained in:
Travis Cross 2014-08-22 01:20:42 +00:00
parent 4f81e5942a
commit 2cf6fd728c

View File

@ -251,7 +251,7 @@ static int check_fd(int fd, int ms)
if ((pfds[0].revents & POLLIN)) { if ((pfds[0].revents & POLLIN)) {
if ((i = read(fd, &r, sizeof(r))) > -1) { if ((i = read(fd, &r, sizeof(r))) > -1) {
i = write(fd, &r, sizeof(r)); (void)write(fd, &r, sizeof(r));
} }
} }
} }
@ -1189,7 +1189,7 @@ int main(int argc, char *argv[])
if ((i = write(fds[1], &v, sizeof(v))) < 0) { if ((i = write(fds[1], &v, sizeof(v))) < 0) {
fprintf(stderr, "System Error [%s]\n", strerror(errno)); fprintf(stderr, "System Error [%s]\n", strerror(errno));
} else { } else {
i = read(fds[1], &v, sizeof(v)); (void)read(fds[1], &v, sizeof(v));
} }
shutdown(fds[1], 2); shutdown(fds[1], 2);