summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-09-11 01:00:50 +0200
committerBjoern Jacke <bj@sernet.de>2012-09-11 04:44:28 +0200
commit5de7a3d73908f50dbaf141d2f964849904b2fa1a (patch)
treea9b90752e86aaad9e95bc82fbdc8f58406dd8d65
parentda747faad25640d0d51e4ca4153eb4e035ab9097 (diff)
downloadsamba-5de7a3d73908f50dbaf141d2f964849904b2fa1a.tar.gz
samba-5de7a3d73908f50dbaf141d2f964849904b2fa1a.tar.bz2
samba-5de7a3d73908f50dbaf141d2f964849904b2fa1a.zip
quota: move function again to its belonging ifdef block
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Sep 11 04:44:28 CEST 2012 on sn-devel-104
-rw-r--r--source3/smbd/quotas.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c
index d9b21f548d..c64b63a4a3 100644
--- a/source3/smbd/quotas.c
+++ b/source3/smbd/quotas.c
@@ -112,6 +112,15 @@ static int my_xdr_getquota_rslt(XDR *xdrsp, struct getquota_rslt *gqr)
return (1);
}
+static int my_xdr_getquota_args(XDR *xdrsp, struct getquota_args *args)
+{
+ if (!xdr_string(xdrsp, &args->gqa_pathp, RQ_PATHLEN ))
+ return(0);
+ if (!xdr_int(xdrsp, &args->gqa_uid))
+ return(0);
+ return (1);
+}
+
/* Restricted to SUNOS5 for the moment, I haven`t access to others to test. */
static bool nfs_quotas(char *nfspath, uid_t euser_id, uint64_t *bsize, uint64_t *dfree, uint64_t *dsize)
{
@@ -520,17 +529,6 @@ bool disk_quotas(const char *path, uint64_t *bsize, uint64_t *dfree, uint64_t *d
#endif
-#if defined(SUNOS)
-static int my_xdr_getquota_args(XDR *xdrsp, struct getquota_args *args)
-{
- if (!xdr_string(xdrsp, &args->gqa_pathp, RQ_PATHLEN ))
- return(0);
- if (!xdr_int(xdrsp, &args->gqa_uid))
- return(0);
- return (1);
-}
-#endif
-
#if defined(VXFS_QUOTA)
/****************************************************************************