X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fnfsquota.c;h=749ddf5c1952a466a4675d2d9b1c3edf2542644a;hb=0bec6e01d5a8c42cb5664846d7757904c7f95bfc;hp=61a4b8ec435cedbf37cbd449240f8078556bec33;hpb=b90fa4a9a05047767a40da2634f1b9440484876f;p=netatalk.git diff --git a/etc/afpd/nfsquota.c b/etc/afpd/nfsquota.c index 61a4b8ec..749ddf5c 100644 --- a/etc/afpd/nfsquota.c +++ b/etc/afpd/nfsquota.c @@ -1,5 +1,5 @@ /* - * $Id: nfsquota.c,v 1.10 2002-08-29 17:22:06 jmarcus Exp $ + * $Id: nfsquota.c,v 1.11 2003-12-28 13:51:12 srittau Exp $ * * parts of this are lifted from the bsd quota program and are * therefore under the following copyright: @@ -38,7 +38,7 @@ char *strchr (), *strrchr (); #include #include #include /* for DEV_BSIZE */ -#include /* on ultrix doesn't include this */ +#include #include #ifdef HAVE_NETDB_H @@ -163,15 +163,15 @@ int getnfsquota(const struct vol *vol, const int uid, const u_int32_t bsize, gq_rslt.GQR_RQUOTA.rq_bhardlimit*NFS_BSIZE; dqp->dqb_bsoftlimit = gq_rslt.GQR_RQUOTA.rq_bsoftlimit*NFS_BSIZE; +#ifdef HAVE_STRUCT_IF_DQBLK + dqp->dqb_curspace = +#else dqp->dqb_curblocks = +#endif gq_rslt.GQR_RQUOTA.rq_curblocks*NFS_BSIZE; -#ifdef ultrix - dqp->dqb_bwarn = gq_rslt.GQR_RQUOTA.rq_btimeleft; -#else /* ultrix */ dqp->dqb_btimelimit = tv.tv_sec + gq_rslt.GQR_RQUOTA.rq_btimeleft; -#endif /* ultrix */ *hostpath = ':'; return AFP_OK;