ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / usr.sbin / quotaon / quotaon.c
index 4145703..47bac71 100644 (file)
@@ -1,6 +1,29 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)quotaon.c  4.4 (Berkeley, Melbourne) %G%";
-#endif
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif /* not lint */
+
+#ifndef lint
+static char sccsid[] = "@(#)quotaon.c  5.4 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * Turn quota on/off for a filesystem.
 
 /*
  * Turn quota on/off for a filesystem.
@@ -174,7 +197,7 @@ readonly(fs)
                cp = fs->fs_spec;
        for (mp = mtab; mp < mtab + NMOUNT; mp++) {
                if (mp->m_path[0] == '\0')
                cp = fs->fs_spec;
        for (mp = mtab; mp < mtab + NMOUNT; mp++) {
                if (mp->m_path[0] == '\0')
-                       break;
+                       continue;
                if (strcmp(cp, mp->m_dname) == 0) {
                        if (strcmp(mp->m_type, FSTAB_RO) == 0) {
                                printf("%s: mounted read-only\n", fs->fs_file);
                if (strcmp(cp, mp->m_dname) == 0) {
                        if (strcmp(mp->m_type, FSTAB_RO) == 0) {
                                printf("%s: mounted read-only\n", fs->fs_file);