summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2013-06-02 23:36:30 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2013-06-02 23:36:30 +0000
commitd5b6fe7489eb21a42d3b2fa4e0790215f8efea51 (patch)
treec52c71e1ace1152a4e80928d3a8a2d1672abecd5 /usr.bin
parent821f59b6253d42d59d607bf8f3601eec1178bc21 (diff)
No need for the mux cleanup callback to be visible so restore it to static
and call it through the detach_user function pointer. ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/clientloop.c6
-rw-r--r--usr.bin/ssh/clientloop.h3
-rw-r--r--usr.bin/ssh/mux.c4
3 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index 84690cea6d8..cffb2fe81a0 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.251 2013/06/01 13:15:51 dtucker Exp $ */
+/* $OpenBSD: clientloop.c,v 1.252 2013/06/02 23:36:29 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1100,8 +1100,8 @@ process_escapes(Channel *c, Buffer *bin, Buffer *bout, Buffer *berr,
if (c && c->ctl_chan != -1) {
chan_read_failed(c);
chan_write_failed(c);
- mux_master_session_cleanup_cb(c->self,
- NULL);
+ if (c->detach_user)
+ c->detach_user(c->self, NULL);
return 0;
} else
quit_pending = 1;
diff --git a/usr.bin/ssh/clientloop.h b/usr.bin/ssh/clientloop.h
index d2baa032457..338d45186f8 100644
--- a/usr.bin/ssh/clientloop.h
+++ b/usr.bin/ssh/clientloop.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.h,v 1.30 2012/08/17 00:45:45 dtucker Exp $ */
+/* $OpenBSD: clientloop.h,v 1.31 2013/06/02 23:36:29 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -76,5 +76,4 @@ void muxserver_listen(void);
void muxclient(const char *);
void mux_exit_message(Channel *, int);
void mux_tty_alloc_failed(Channel *);
-void mux_master_session_cleanup_cb(int, void *);
diff --git a/usr.bin/ssh/mux.c b/usr.bin/ssh/mux.c
index fcfb301d6e5..bcaa4fdd790 100644
--- a/usr.bin/ssh/mux.c
+++ b/usr.bin/ssh/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.41 2013/05/17 00:13:13 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.42 2013/06/02 23:36:29 dtucker Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
*
@@ -171,7 +171,7 @@ static const struct {
/* Cleanup callback fired on closure of mux slave _session_ channel */
/* ARGSUSED */
-void
+static void
mux_master_session_cleanup_cb(int cid, void *unused)
{
Channel *cc, *c = channel_by_id(cid);