94df3e688c
+ add support for gcc4
42 lines
1.7 KiB
Text
42 lines
1.7 KiB
Text
$NetBSD: patch-az,v 1.1 2006/10/21 11:53:13 agc Exp $
|
|
|
|
--- ./nfsmounter/staleserv.C.orig 1999-03-23 05:57:05.000000000 +0000
|
|
+++ ./nfsmounter/staleserv.C
|
|
@@ -101,7 +101,7 @@ stalesrv::dispatch (srvelm *s, svccb *sb
|
|
nfsmnt_handle h;
|
|
if (sbp->proc () != 0) {
|
|
h.setsize (NFS_FHSIZE);
|
|
- memcpy (h.base (), sbp->template getarg<nfs_fh> (), NFS_FHSIZE);
|
|
+ memcpy (h.base (), sbp->getarg<nfs_fh> (), NFS_FHSIZE);
|
|
}
|
|
switch (sbp->proc ()) {
|
|
case NFSPROC_GETATTR:
|
|
@@ -115,8 +115,8 @@ stalesrv::dispatch (srvelm *s, svccb *sb
|
|
break;
|
|
case NFSPROC_LOOKUP:
|
|
if (mpfsnode *n = getnode (nf->nfs2nodes[h])) {
|
|
- if (sbp->template getarg<diropargs> ()->name == "."
|
|
- || (n = n->dir->lookup(sbp->template getarg<diropargs> ()
|
|
+ if (sbp->getarg<diropargs> ()->name == "."
|
|
+ || (n = n->dir->lookup(sbp->getarg<diropargs> ()
|
|
->name))) {
|
|
diropres res (NFS_OK);
|
|
memcpy (res.reply->file.data.base (),
|
|
@@ -142,7 +142,7 @@ stalesrv::dispatch (srvelm *s, svccb *sb
|
|
//warn ("staleserv: %s\n", nfs_program_3.tbl[sbp->proc ()].name);
|
|
nfsmnt_handle h;
|
|
if (sbp->proc () != 0)
|
|
- h = sbp->template getarg<nfs_fh3> ()->data;
|
|
+ h = sbp->getarg<nfs_fh3> ()->data;
|
|
switch (sbp->proc ()) {
|
|
case NFSPROC3_GETATTR:
|
|
if (mpfsnode *n = getnode (nf->nfs3nodes[h])) {
|
|
@@ -155,7 +155,7 @@ stalesrv::dispatch (srvelm *s, svccb *sb
|
|
break;
|
|
case NFSPROC3_LOOKUP:
|
|
if (mpfsnode *n = getnode (nf->nfs3nodes[h])) {
|
|
- diropargs3 *arg = sbp->template getarg<diropargs3> ();
|
|
+ diropargs3 *arg = sbp->getarg<diropargs3> ();
|
|
if (arg->name == "." || (n = n->dir->lookup(arg->name))) {
|
|
lookup3res res (NFS3_OK);
|
|
res.resok->object.data = n->fh;
|