summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-06-25 22:09:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-06-25 22:09:21 +0000
commitd61db605f4bcb38228116b6fd698f98349e04aa2 (patch)
tree297070f37ee44fe3642087b5efa7392a8ca573f7 /usr.bin
parent572f976ee6c37c434fa35c9b5b4ad1cccc07feaa (diff)
Remove some dead assignments, found by sthen with clang.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/client.c3
-rw-r--r--usr.bin/tmux/server.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c
index 3a61b131236..4d4350186e2 100644
--- a/usr.bin/tmux/client.c
+++ b/usr.bin/tmux/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.2 2009/06/05 07:15:58 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>
@@ -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);
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index ab2a4cd8907..54b0e5ac803 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.3 2009/06/24 22:49:56 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>
@@ -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");