diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-05 20:46:15 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-05 20:46:15 +0000 |
commit | bd2fe239db24b8b3fa6a906542af2e238f435331 (patch) | |
tree | b7d71ce5de0c6c29cadd20a4bb9dd0d5a27980c7 /source | |
parent | 1751a6316af91d5d2e31c3a7e8de2841aae033c7 (diff) | |
download | samba-bd2fe239db24b8b3fa6a906542af2e238f435331.tar.gz samba-bd2fe239db24b8b3fa6a906542af2e238f435331.tar.xz samba-bd2fe239db24b8b3fa6a906542af2e238f435331.zip |
Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
to work on Solaris 2.6.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/quotas.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/smbd/quotas.c b/source/smbd/quotas.c index 75e27f356ad..ccb5534641a 100644 --- a/source/smbd/quotas.c +++ b/source/smbd/quotas.c @@ -278,15 +278,15 @@ static int xdr_getquota_args(XDR *xdrsp, struct getquota_args *args) static int xdr_getquota_rslt(XDR *xdrsp, struct getquota_rslt *gqr) { gqr_status status; - union { + union { rquota gqr_rquota; } getquota_rslt_u; - + if (!xdr_int(xdrsp, "astat)) { DEBUG(6,("nfs_quotas: Status bad or zero\n")); return 0; } - if (!xdr_int32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsize)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsize)) { DEBUG(6,("nfs_quotas: Block size bad or zero\n")); return 0; } @@ -294,15 +294,15 @@ static int xdr_getquota_rslt(XDR *xdrsp, struct getquota_rslt *gqr) DEBUG(6,("nfs_quotas: Active bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bhardlimit)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bhardlimit)) { DEBUG(6,("nfs_quotas: Hardlimit bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsoftlimit)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_bsoftlimit)) { DEBUG(6,("nfs_quotas: Softlimit bad or zero\n")); return 0; } - if (!xdr_uint32_t(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_curblocks)) { + if (!xdr_int(xdrsp, &gqr->getquota_rslt_u.gqr_rquota.rq_curblocks)) { DEBUG(6,("nfs_quotas: Currentblocks bad or zero\n")); return 0; } |