Merge from vendor branch TNF:
[pkgsrc.git] / security / sfs / patches / patch-aq
1 $NetBSD$
2
3 --- ./sfsmisc/nfsserv.h.orig    2002-09-19 21:04:20.000000000 +0100
4 +++ ./sfsmisc/nfsserv.h
5 @@ -116,9 +116,7 @@ template<int N> class nfscall_cb : publi
6    typedef ref<callback<void, res_type> > cb_t;
7    cb_t cb;
8  public:
9 -  nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
10 -             nfsserv *srv = NULL)
11 -    : nfscall (au, N, a), cb (c) { if ((stopserv = srv)) srv->mkcb (this); }
12 +  nfscall_cb (const authunix_parms *au, arg_type a, cb_t c, nfsserv *srv);
13    ~nfscall_cb () {
14      /* Note, if xdr_res is not the default, we could always marshall
15       * and unmarshall the result to get it in the right type.  That
16 @@ -149,6 +147,15 @@ struct nfsserv : public virtual refcount
17    virtual bool encodefh (nfs_fh3 &fh);
18  };
19  
20 +template<int N> inline
21 +nfscall_cb<N>::nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
22 +                           nfsserv *srv = NULL)
23 +  : nfscall (au, N, a), cb (c)
24 +{ 
25 +  if ((stopserv = srv))
26 +    srv->mkcb (this);
27 +}
28 +    
29  class nfsserv_udp : public nfsserv {
30    int fd;
31    ptr<axprt> x;