summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-ar
blob: 79153c6ca95c388e7b808b38981c5add3a1e8caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$NetBSD: patch-ar,v 1.1 2006/10/21 11:53:13 agc Exp $

--- ./sfsmisc/rex.C.orig	2002-11-28 16:21:03.000000000 +0000
+++ ./sfsmisc/rex.C
@@ -91,7 +91,7 @@ unixfd::newfd (svccb *sbp)
 {
   assert (paios_out);
 
-  rexcb_newfd_arg *argp = sbp->template getarg<rexcb_newfd_arg> ();
+  rexcb_newfd_arg *argp = sbp->getarg<rexcb_newfd_arg> ();
     
   int s[2];
     
@@ -115,7 +115,7 @@ unixfd::data (svccb *sbp)
 {
   assert (paios_out);
     
-  rex_payload *argp = sbp->template getarg<rex_payload> ();
+  rex_payload *argp = sbp->getarg<rex_payload> ();
     
   if (argp->data.size () > 0) {
     if (weof) {
@@ -133,7 +133,7 @@ unixfd::data (svccb *sbp)
       
     //we don't shutdown immediately to give data a chance to
     //asynchronously flush
-    paios_out->setwcb (wrap (this, &unixfd::update_connstate, SHUT_WR));
+    paios_out->setwcb (wrap (this, &unixfd::update_connstate, (int)SHUT_WR));
   }
 }
 
@@ -227,7 +227,7 @@ void
 rexchannel::data(svccb *sbp)
 {
   assert (sbp->prog () == REXCB_PROG && sbp->proc () == REXCB_DATA);
-  rex_payload *dp = sbp->template getarg<rex_payload> ();
+  rex_payload *dp = sbp->getarg<rex_payload> ();
   assert (dp->channel == channo);
   if (dp->fd < 0 ||
       implicit_cast<size_t> (dp->fd) >= vfds.size () ||
@@ -245,7 +245,7 @@ void
 rexchannel::newfd (svccb *sbp)
 {
   assert (sbp->prog () == REXCB_PROG && sbp->proc () == REXCB_NEWFD);
-  rexcb_newfd_arg *arg = sbp->template getarg<rexcb_newfd_arg> ();
+  rexcb_newfd_arg *arg = sbp->getarg<rexcb_newfd_arg> ();
 
   int fd = arg->fd;
 
@@ -308,7 +308,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
 	
   case REXCB_EXIT:
     {
-      rex_int_arg *argp = sbp->template getarg<rex_int_arg> ();
+      rex_int_arg *argp = sbp->getarg<rex_int_arg> ();
       rexchannel *chan = channels[argp->channel];
 	  
       if (chan) {
@@ -326,7 +326,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
 	
   case REXCB_DATA:
     {
-      rex_payload *argp = sbp->template getarg<rex_payload> ();
+      rex_payload *argp = sbp->getarg<rex_payload> ();
       rexchannel *chan = channels[argp->channel];
 	  
       if (chan)
@@ -338,7 +338,7 @@ rexsession::rexcb_dispatch (svccb *sbp)
 	
   case REXCB_NEWFD:
     {
-      rex_int_arg *argp = sbp->template getarg<rex_int_arg> ();
+      rex_int_arg *argp = sbp->getarg<rex_int_arg> ();
       rexchannel *chan = channels[argp->channel];
       if (chan)
 	chan->newfd (sbp);