94df3e688c
+ add support for gcc4
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
$NetBSD: patch-be,v 1.1 2006/10/21 11:53:13 agc Exp $
|
|
|
|
--- ./sfsrwcd/server.C.orig 2002-09-19 21:04:20.000000000 +0100
|
|
+++ ./sfsrwcd/server.C
|
|
@@ -47,7 +47,7 @@ server::getreply (time_t rqtime, nfscall
|
|
|
|
if (nc->proc () == NFSPROC3_ACCESS) {
|
|
ex_access3res *ares = static_cast<ex_access3res *> (res);
|
|
- access3args *a = nc->template getarg<access3args> ();
|
|
+ access3args *a = nc->getarg<access3args> ();
|
|
if (ares->status)
|
|
ac.flush_access (a->object, nc->getaid ());
|
|
else
|
|
@@ -72,7 +72,7 @@ server::cbdispatch (svccb *sbp)
|
|
break;
|
|
case ex_NFSCBPROC3_INVALIDATE:
|
|
{
|
|
- ex_invalidate3args *xa = sbp->template getarg<ex_invalidate3args> ();
|
|
+ ex_invalidate3args *xa = sbp->getarg<ex_invalidate3args> ();
|
|
ex_fattr3 *a = NULL;
|
|
if (xa->attributes.present && xa->attributes.attributes->expire) {
|
|
a = xa->attributes.attributes.addr ();
|
|
@@ -140,7 +140,7 @@ server::dispatch (nfscall *nc)
|
|
|
|
#ifndef NO_ACACHE
|
|
if (nc->proc () == NFSPROC3_GETATTR) {
|
|
- const ex_fattr3 *f = ac.attr_lookup (*nc->template getarg<nfs_fh3> ());
|
|
+ const ex_fattr3 *f = ac.attr_lookup (*nc->getarg<nfs_fh3> ());
|
|
if (f) {
|
|
getattr3res res (NFS3_OK);
|
|
*res.attributes = *reinterpret_cast<const fattr3 *> (f);
|
|
@@ -149,7 +149,7 @@ server::dispatch (nfscall *nc)
|
|
}
|
|
}
|
|
else if (nc->proc () == NFSPROC3_ACCESS) {
|
|
- access3args *a = nc->template getarg<access3args> ();
|
|
+ access3args *a = nc->getarg<access3args> ();
|
|
int32_t perm = ac.access_lookup (a->object, nc->getaid (), a->access);
|
|
if (perm > 0) {
|
|
access3res res (NFS3_OK);
|