summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-aa
blob: 1d3ebb90b311006ac28ce927778f537c6c442d5f (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
$NetBSD: patch-aa,v 1.1 2006/10/21 11:53:13 agc Exp $

--- ./async/aiod.C.orig	2002-09-09 19:58:48.000000000 +0100
+++ ./async/aiod.C
@@ -277,7 +277,7 @@ void
 aiosrv::pathop (aiomsg_t msg)
 {
   static int fd = -1;
-  aiod_pathop *rq = buf->template getptr<aiod_pathop> (msg);
+  aiod_pathop *rq = buf->getptr<aiod_pathop> (msg);
   errno = 0;
   switch (rq->op) {
   case AIOD_UNLINK:
@@ -324,8 +324,8 @@ aiosrv::pathop (aiomsg_t msg)
 void
 aiosrv::fhop (aiomsg_t msg)
 {
-  aiod_fhop *rq = buf->template getptr<aiod_fhop> (msg);
-  aiod_file *af = buf->template getptr<aiod_file> (rq->fh);
+  aiod_fhop *rq = buf->getptr<aiod_fhop> (msg);
+  aiod_file *af = buf->getptr<aiod_file> (rq->fh);
 
   if (rq->op == AIOD_OPEN) {
     fht.create (af, rq->mode, &rq->err);
@@ -387,8 +387,8 @@ aiosrv::fhop (aiomsg_t msg)
 void
 aiosrv::fstat (aiomsg_t msg)
 {
-  aiod_fstat *rq = buf->template getptr<aiod_fstat> (msg);
-  aiod_file *af = buf->template getptr<aiod_file> (rq->fh);
+  aiod_fstat *rq = buf->getptr<aiod_fstat> (msg);
+  aiod_file *af = buf->getptr<aiod_file> (rq->fh);
 
   if (rq->op != AIOD_FSTAT)
     panic ("aiosrv::fstat: bad op %d\n", rq->op);
@@ -407,7 +407,7 @@ void
 aiosrv::nop (aiomsg_t msg)
 {
   /* If the shmfile is sparse, a nop forces allocation. */
-  aiod_nop *rq = buf->template getptr<aiod_nop> (msg);
+  aiod_nop *rq = buf->getptr<aiod_nop> (msg);
   size_t sz = 0;
   bool touchable = rq->nopsize;
   if (lseek (buf->fd, msg, SEEK_SET) != -1) {
@@ -466,7 +466,7 @@ aiosrv::getmsg (aiomsg_t msg)
     fatal ("bad opcode %d from client\n", op);
 
   if (aiodtrace)
-    aiod_dump (buf->template getptr<void> (msg));
+    aiod_dump (buf->getptr<void> (msg));
   if (write (fd, &msg, sizeof (msg)) != sizeof (msg)) {
     if (errno != EPIPE)
       fatal ("aiosrv::write: %m\n");