Author: imp
Date: Mon Feb  3 16:46:01 2014
New Revision: 261436
URL: http://svnweb.freebsd.org/changeset/base/261436

Log:
  In the 17 years since r30796, the mandatory keyword has never been used
  in any files as far as I can tell, and is currently unused. Retire it.

Modified:
  head/usr.sbin/config/mkmakefile.c

Modified: head/usr.sbin/config/mkmakefile.c
==============================================================================
--- head/usr.sbin/config/mkmakefile.c   Mon Feb  3 15:10:44 2014        
(r261435)
+++ head/usr.sbin/config/mkmakefile.c   Mon Feb  3 16:46:01 2014        
(r261436)
@@ -299,7 +299,7 @@ read_file(char *fname)
        char *wd, *this, *compilewith, *depends, *clean, *warning;
        const char *objprefix;
        int compile, match, nreqs, std, filetype,
-           imp_rule, no_obj, before_depend, mandatory, nowerror;
+           imp_rule, no_obj, before_depend, nowerror;
 
        fp = fopen(fname, "r");
        if (fp == 0)
@@ -307,7 +307,7 @@ read_file(char *fname)
 next:
        /*
         * include "filename"
-        * filename    [ standard | mandatory | optional ]
+        * filename    [ standard | optional ]
         *      [ dev* [ | dev* ... ] | profiling-routine ] [ no-obj ]
         *      [ compile-with "compile rule" [no-implicit-rule] ]
         *      [ dependency "dependency-list"] [ before-depend ]
@@ -358,7 +358,7 @@ next:
        depends = 0;
        clean = 0;
        warning = 0;
-       std = mandatory = 0;
+       std = 0;
        imp_rule = 0;
        no_obj = 0;
        before_depend = 0;
@@ -367,16 +367,9 @@ next:
        objprefix = "";
        if (eq(wd, "standard")) {
                std = 1;
-       /*
-        * If an entry is marked "mandatory", config will abort if it's
-        * not called by a configuration line in the config file.  Apart
-        * from this, the device is handled like one marked "optional".
-        */
-       } else if (eq(wd, "mandatory")) {
-               mandatory = 1;
        } else if (!eq(wd, "optional")) {
                fprintf(stderr,
-                   "%s: \"%s\" %s must be optional, mandatory or standard\n",
+                   "%s: \"%s\" %s must be optional or standard\n",
                    fname, wd, this);
                exit(1);
        }
@@ -526,11 +519,6 @@ nextparam:
                        dp->d_done |= DEVDONE;
                        goto nextparam;
                }
-       if (mandatory) {
-               fprintf(stderr, "%s: mandatory device \"%s\" not found\n",
-                      fname, wd);
-               exit(1);
-       }
        if (std) {
                fprintf(stderr,
                    "standard entry %s has a device keyword - %s!\n",
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to