Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / sfs / patches / patch-ar
blob058e245df8a459068c0f417f7514d17210a5816b
1 $NetBSD$
3 --- ./sfsmisc/rex.C.orig        2002-11-28 16:21:03.000000000 +0000
4 +++ ./sfsmisc/rex.C
5 @@ -91,7 +91,7 @@ unixfd::newfd (svccb *sbp)
6  {
7    assert (paios_out);
8  
9 -  rexcb_newfd_arg *argp = sbp->template getarg<rexcb_newfd_arg> ();
10 +  rexcb_newfd_arg *argp = sbp->getarg<rexcb_newfd_arg> ();
11      
12    int s[2];
13      
14 @@ -115,7 +115,7 @@ unixfd::data (svccb *sbp)
15  {
16    assert (paios_out);
17      
18 -  rex_payload *argp = sbp->template getarg<rex_payload> ();
19 +  rex_payload *argp = sbp->getarg<rex_payload> ();
20      
21    if (argp->data.size () > 0) {
22      if (weof) {
23 @@ -133,7 +133,7 @@ unixfd::data (svccb *sbp)
24        
25      //we don't shutdown immediately to give data a chance to
26      //asynchronously flush
27 -    paios_out->setwcb (wrap (this, &unixfd::update_connstate, SHUT_WR));
28 +    paios_out->setwcb (wrap (this, &unixfd::update_connstate, (int)SHUT_WR));
29    }
30  }
32 @@ -227,7 +227,7 @@ void
33  rexchannel::data(svccb *sbp)
34  {
35    assert (sbp->prog () == REXCB_PROG && sbp->proc () == REXCB_DATA);
36 -  rex_payload *dp = sbp->template getarg<rex_payload> ();
37 +  rex_payload *dp = sbp->getarg<rex_payload> ();
38    assert (dp->channel == channo);
39    if (dp->fd < 0 ||
40        implicit_cast<size_t> (dp->fd) >= vfds.size () ||
41 @@ -245,7 +245,7 @@ void
42  rexchannel::newfd (svccb *sbp)
43  {
44    assert (sbp->prog () == REXCB_PROG && sbp->proc () == REXCB_NEWFD);
45 -  rexcb_newfd_arg *arg = sbp->template getarg<rexcb_newfd_arg> ();
46 +  rexcb_newfd_arg *arg = sbp->getarg<rexcb_newfd_arg> ();
48    int fd = arg->fd;
50 @@ -308,7 +308,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
51         
52    case REXCB_EXIT:
53      {
54 -      rex_int_arg *argp = sbp->template getarg<rex_int_arg> ();
55 +      rex_int_arg *argp = sbp->getarg<rex_int_arg> ();
56        rexchannel *chan = channels[argp->channel];
57           
58        if (chan) {
59 @@ -326,7 +326,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
60         
61    case REXCB_DATA:
62      {
63 -      rex_payload *argp = sbp->template getarg<rex_payload> ();
64 +      rex_payload *argp = sbp->getarg<rex_payload> ();
65        rexchannel *chan = channels[argp->channel];
66           
67        if (chan)
68 @@ -338,7 +338,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
69         
70    case REXCB_NEWFD:
71      {
72 -      rex_int_arg *argp = sbp->template getarg<rex_int_arg> ();
73 +      rex_int_arg *argp = sbp->getarg<rex_int_arg> ();
74        rexchannel *chan = channels[argp->channel];
75        if (chan)
76         chan->newfd (sbp);