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

--- ./sfsmisc/nfsserv.h.orig	2002-09-19 21:04:20.000000000 +0100
+++ ./sfsmisc/nfsserv.h
@@ -116,9 +116,7 @@ template<int N> class nfscall_cb : publi
   typedef ref<callback<void, res_type> > cb_t;
   cb_t cb;
 public:
-  nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
-	      nfsserv *srv = NULL)
-    : nfscall (au, N, a), cb (c) { if ((stopserv = srv)) srv->mkcb (this); }
+  nfscall_cb (const authunix_parms *au, arg_type a, cb_t c, nfsserv *srv);
   ~nfscall_cb () {
     /* Note, if xdr_res is not the default, we could always marshall
      * and unmarshall the result to get it in the right type.  That
@@ -149,6 +147,15 @@ struct nfsserv : public virtual refcount
   virtual bool encodefh (nfs_fh3 &fh);
 };
 
+template<int N> inline
+nfscall_cb<N>::nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
+                           nfsserv *srv = NULL)
+  : nfscall (au, N, a), cb (c)
+{ 
+  if ((stopserv = srv))
+    srv->mkcb (this);
+}
+    
 class nfsserv_udp : public nfsserv {
   int fd;
   ptr<axprt> x;