59 lines
1.9 KiB
Text
59 lines
1.9 KiB
Text
|
$NetBSD: patch-bp,v 1.1 2006/10/21 11:53:13 agc Exp $
|
||
|
|
||
|
--- ./rex/proxy.C.orig 2002-11-26 23:13:00.000000000 +0000
|
||
|
+++ ./rex/proxy.C
|
||
|
@@ -76,7 +76,7 @@ rexclnt::dispatch (svccb *sbp)
|
||
|
break;
|
||
|
case REX_DATA:
|
||
|
{
|
||
|
- rex_payload *argp = sbp->template getarg<rex_payload> ();
|
||
|
+ rex_payload *argp = sbp->getarg<rex_payload> ();
|
||
|
if (argp->fd < 0) {
|
||
|
chantab.remove (argp->channel);
|
||
|
sbp->replyref (false);
|
||
|
@@ -90,7 +90,7 @@ rexclnt::dispatch (svccb *sbp)
|
||
|
case REX_CLOSE:
|
||
|
case REX_KILL:
|
||
|
{
|
||
|
- rex_int_arg *argp = sbp->template getarg<rex_int_arg> ();
|
||
|
+ rex_int_arg *argp = sbp->getarg<rex_int_arg> ();
|
||
|
if (chanbase *c = chantab[argp->channel]) {
|
||
|
if (sbp->proc () == REX_KILL)
|
||
|
c->kill (sbp);
|
||
|
@@ -103,7 +103,7 @@ rexclnt::dispatch (svccb *sbp)
|
||
|
}
|
||
|
case REX_MKCHANNEL:
|
||
|
{
|
||
|
- rex_mkchannel_arg *argp = sbp->template getarg<rex_mkchannel_arg> ();
|
||
|
+ rex_mkchannel_arg *argp = sbp->getarg<rex_mkchannel_arg> ();
|
||
|
ptr<chanbase> cb;
|
||
|
|
||
|
int cn = chanalloc ();
|
||
|
@@ -120,7 +120,7 @@ rexclnt::dispatch (svccb *sbp)
|
||
|
}
|
||
|
case REX_SETENV:
|
||
|
{
|
||
|
- rex_setenv_arg *arg = sbp->template getarg<rex_setenv_arg> ();
|
||
|
+ rex_setenv_arg *arg = sbp->getarg<rex_setenv_arg> ();
|
||
|
if (!arg->name.len ()) {
|
||
|
warn ("received REX_SETENV with null name\n");
|
||
|
sbp->replyref (false);
|
||
|
@@ -143,7 +143,7 @@ rexclnt::dispatch (svccb *sbp)
|
||
|
case REX_UNSETENV:
|
||
|
{
|
||
|
#ifdef HAVE_UNSETENV
|
||
|
- rex_unsetenv_arg *arg = sbp->template getarg<rex_unsetenv_arg> ();
|
||
|
+ rex_unsetenv_arg *arg = sbp->getarg<rex_unsetenv_arg> ();
|
||
|
if (arg->len ())
|
||
|
unsetenv (arg->cstr ());
|
||
|
else
|
||
|
@@ -176,7 +176,7 @@ ctldispatch (svccb *sbp)
|
||
|
break;
|
||
|
case REXCTL_CONNECT:
|
||
|
{
|
||
|
- sfs_sessinfo *argp = sbp->template getarg<sfs_sessinfo> ();
|
||
|
+ sfs_sessinfo *argp = sbp->getarg<sfs_sessinfo> ();
|
||
|
int fd = rxprt->recvfd ();
|
||
|
if (fd >= 0) {
|
||
|
ref<axprt_crypt> x (axprt_crypt::alloc (fd));
|