mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
Remove dead assignments in switch.c
This commit is contained in:
parent
4f81e5942a
commit
2cf6fd728c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user