quota: move function again to its belonging ifdef block
authorBjörn Jacke <bj@sernet.de>
Mon, 10 Sep 2012 23:00:50 +0000 (01:00 +0200)
committerBjoern Jacke <bj@sernet.de>
Tue, 11 Sep 2012 02:44:28 +0000 (04:44 +0200)
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Sep 11 04:44:28 CEST 2012 on sn-devel-104

source3/smbd/quotas.c

index d9b21f548d26794293628b2031545880ad8b7e77..c64b63a4a36146b7e7a24205d310f4fbcb2f68ff 100644 (file)
@@ -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)
 
 /****************************************************************************