]> andersk Git - moira.git/blobdiff - gen/setquota.c
moved local-aliases from /usr/lib to /u1/usr/lib
[moira.git] / gen / setquota.c
index 61b737308b9ed79fcf5b1ddb03291023098fe677..46312dea8171ec01eaf14792af67e60998ef7968 100644 (file)
  * quota system.
  *
  *      $Log$
- *      Revision 1.4  1990-01-27 19:48:05  jnrees
- *      Grows quotas file if necessary
- *      Allows setting quota for a range of uid's.
+ *      Revision 1.6  1990-03-07 17:41:22  mar
+ *      fix proc delcaration to pass cc
  *
+ * Revision 1.5  90/03/06  15:59:08  jnrees
+ * x*.5 replaced with x/2;
+ * x*1.2 with (x*6)/5;
+ * This avoids linking in the floating-point library.
+ * 
+ * Revision 1.4  90/01/27  19:48:05  jnrees
+ * Grows quotas file if necessary
+ * Allows setting quota for a range of uid's.
+ * 
  * Revision 1.3  88/10/06  10:46:08  raeburn
  * (mar) Don't expire timers on users currently over quota.
  *
@@ -123,9 +131,9 @@ quota is in 1KB units\n");
          }
 
          db.dqb_bsoftlimit = soft_quota;
-         db.dqb_bhardlimit = db.dqb_bsoftlimit * 1.2;
-         db.dqb_fsoftlimit = soft_quota * .5;
-         db.dqb_fhardlimit = db.dqb_fsoftlimit * 1.2;
+         db.dqb_bhardlimit = (db.dqb_bsoftlimit * 6) / 5;
+         db.dqb_fsoftlimit = soft_quota / 2;
+         db.dqb_fhardlimit = (db.dqb_fsoftlimit * 6) / 5;
          db.dqb_btimelimit = odb.dqb_btimelimit;
          db.dqb_ftimelimit = odb.dqb_ftimelimit;
 
@@ -154,7 +162,8 @@ quota is in 1KB units\n");
        exit (0);
 }
        
-get_device(char *device_or_dir)
+get_device(device_or_dir)
+char *device_or_dir;
 {
   register struct mntent *mntp;
   FILE *fstab;
This page took 0.033552 seconds and 4 git commands to generate.