]> arthur.barton.de Git - netatalk.git/commitdiff
White space update from trunk.
authorsrittau <srittau>
Tue, 12 Mar 2002 15:15:28 +0000 (15:15 +0000)
committersrittau <srittau>
Tue, 12 Mar 2002 15:15:28 +0000 (15:15 +0000)
etc/afpd/quota.c

index a43d2bb66a57daf227d6971c37c1e919099502b5..84962259073bb7b6c75ef5f3540b584a445b24e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.11.2.5 2002-03-05 02:08:12 jmarcus Exp $
+ * $Id: quota.c,v 1.11.2.6 2002-03-12 15:15:28 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -413,15 +413,15 @@ const u_int32_t bsize;
     if (dqblk.dqb_bsoftlimit == 0 && dqblk.dqb_bhardlimit == 0) {
         *btotal = *bfree = ~((VolSpace) 0);
     } else if ( overquota( &dqblk )) {
-               if ( tobytes( dqblk.dqb_curblocks, bsize ) > tobytes( dqblk.dqb_bhardlimit, bsize ) ) {
-                       *btotal = tobytes( dqblk.dqb_curblocks, bsize );
-                       *bfree = 0;
-               }
-               else {
-               *btotal = tobytes( dqblk.dqb_bhardlimit, bsize );
-               *bfree = tobytes( dqblk.dqb_bhardlimit, bsize ) -
-                       tobytes( dqblk.dqb_curblocks, bsize );
-               }
+        if ( tobytes( dqblk.dqb_curblocks, bsize ) > tobytes( dqblk.dqb_bhardlimit, bsize ) ) {
+            *btotal = tobytes( dqblk.dqb_curblocks, bsize );
+            *bfree = 0;
+        }
+        else {
+            *btotal = tobytes( dqblk.dqb_bhardlimit, bsize );
+            *bfree = tobytes( dqblk.dqb_bhardlimit, bsize ) -
+                     tobytes( dqblk.dqb_curblocks, bsize );
+        }
     } else {
         *btotal = tobytes( dqblk.dqb_bsoftlimit, bsize );
         *bfree = tobytes( dqblk.dqb_bsoftlimit, bsize  ) -