Remove some dead assignments, found by sthen with clang.

This commit is contained in:
Nicholas Marriott 2009-06-25 22:09:20 +00:00
parent e225ce0fd7
commit eb8ab96980
2 changed files with 1 additions and 2 deletions

View File

@ -142,7 +142,6 @@ client_main(struct client_ctx *cctx)
logfile("client");
error = NULL;
xtimeout = INFTIM;
while (!sigterm) {
if (sigchld) {
waitpid(WAIT_ANY, NULL, WNOHANG);

View File

@ -288,7 +288,7 @@ server_main(int srv_fd)
xtimeout = POLL_TIMEOUT;
/* Do the poll. */
if ((nfds = poll(pfds, nfds, xtimeout)) == -1) {
if (poll(pfds, nfds, xtimeout) == -1) {
if (errno == EAGAIN || errno == EINTR)
continue;
fatal("poll failed");