diff options
author | Simon Tatham <anakin@pobox.com> | 2021-10-30 19:36:52 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2021-10-30 20:19:56 +0300 |
commit | 89a390bdeb5b624e17789518efb843e3a88b5417 (patch) | |
tree | 85094c0808a09e90741dfa25c69e17c5cbd718cc /otherbackends | |
parent | aac5e096fa0579c754776167c1486bdb693c065d (diff) |
Pass an Interactor to new_connection().
Thanks to the previous commit, this new parameter can replace two of
the existing ones: instead of passing a LogPolicy and a Seat, we now
pass just an Interactor, from which any proxy implementation can
extract the LogPolicy and the Seat anyway if they need it.
Diffstat (limited to 'otherbackends')
-rw-r--r-- | otherbackends/raw.c | 3 | ||||
-rw-r--r-- | otherbackends/rlogin.c | 2 | ||||
-rw-r--r-- | otherbackends/supdup.c | 2 | ||||
-rw-r--r-- | otherbackends/telnet.c | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/otherbackends/raw.c b/otherbackends/raw.c index 7e80e42b..a5b3f427 100644 --- a/otherbackends/raw.c +++ b/otherbackends/raw.c @@ -210,8 +210,7 @@ static char *raw_init(const BackendVtable *vt, Seat *seat, * Open socket. */ raw->s = new_connection(addr, *realhost, port, false, true, nodelay, - keepalive, &raw->plug, conf, - log_get_policy(logctx), &raw->seat); + keepalive, &raw->plug, conf, &raw->interactor); if ((err = sk_socket_error(raw->s)) != NULL) return dupstr(err); diff --git a/otherbackends/rlogin.c b/otherbackends/rlogin.c index 6da67070..035295c9 100644 --- a/otherbackends/rlogin.c +++ b/otherbackends/rlogin.c @@ -290,7 +290,7 @@ static char *rlogin_init(const BackendVtable *vt, Seat *seat, */ rlogin->s = new_connection(addr, *realhost, port, true, false, nodelay, keepalive, &rlogin->plug, conf, - log_get_policy(logctx), &rlogin->seat); + &rlogin->interactor); if ((err = sk_socket_error(rlogin->s)) != NULL) return dupstr(err); diff --git a/otherbackends/supdup.c b/otherbackends/supdup.c index f680c521..a46bfd9a 100644 --- a/otherbackends/supdup.c +++ b/otherbackends/supdup.c @@ -759,7 +759,7 @@ static char *supdup_init(const BackendVtable *x, Seat *seat, */ supdup->s = new_connection(addr, *realhost, port, false, true, nodelay, keepalive, &supdup->plug, supdup->conf, - log_get_policy(logctx), &supdup->seat); + &supdup->interactor); if ((err = sk_socket_error(supdup->s)) != NULL) return dupstr(err); diff --git a/otherbackends/telnet.c b/otherbackends/telnet.c index fecee06c..df23f2f2 100644 --- a/otherbackends/telnet.c +++ b/otherbackends/telnet.c @@ -782,7 +782,7 @@ static char *telnet_init(const BackendVtable *vt, Seat *seat, */ telnet->s = new_connection(addr, *realhost, port, false, true, nodelay, keepalive, &telnet->plug, telnet->conf, - log_get_policy(logctx), &telnet->seat); + &telnet->interactor); if ((err = sk_socket_error(telnet->s)) != NULL) return dupstr(err); |