mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Remove some dead assignments, found by sthen with clang.
This commit is contained in:
parent
81b4aca934
commit
3fcbe1e27b
3
client.c
3
client.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: client.c,v 1.50 2009-06-25 16:21:32 nicm Exp $ */
|
/* $OpenBSD: client.c,v 1.3 2009/06/25 22:09:20 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -146,7 +146,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);
|
||||||
|
4
server.c
4
server.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server.c,v 1.149 2009-06-25 16:34:50 nicm Exp $ */
|
/* $OpenBSD: server.c,v 1.4 2009/06/25 22:09:20 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -292,7 +292,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…
x
Reference in New Issue
Block a user