mirror of
https://github.com/tmux/tmux.git
synced 2025-04-23 21:08:48 +00:00
Remove some dead assignments, found by sthen with clang.
This commit is contained in:
parent
e225ce0fd7
commit
eb8ab96980
1
client.c
1
client.c
@ -142,7 +142,6 @@ client_main(struct client_ctx *cctx)
|
|||||||
logfile("client");
|
logfile("client");
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
xtimeout = INFTIM;
|
|
||||||
while (!sigterm) {
|
while (!sigterm) {
|
||||||
if (sigchld) {
|
if (sigchld) {
|
||||||
waitpid(WAIT_ANY, NULL, WNOHANG);
|
waitpid(WAIT_ANY, NULL, WNOHANG);
|
||||||
|
2
server.c
2
server.c
@ -288,7 +288,7 @@ server_main(int srv_fd)
|
|||||||
xtimeout = POLL_TIMEOUT;
|
xtimeout = POLL_TIMEOUT;
|
||||||
|
|
||||||
/* Do the poll. */
|
/* Do the poll. */
|
||||||
if ((nfds = poll(pfds, nfds, xtimeout)) == -1) {
|
if (poll(pfds, nfds, xtimeout) == -1) {
|
||||||
if (errno == EAGAIN || errno == EINTR)
|
if (errno == EAGAIN || errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
fatal("poll failed");
|
fatal("poll failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user