config(8): Invert checks; envmode/hintmode reflect "env provided"1
This commit is contained in:
parent
405f09319f
commit
761d344c16
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336419
@ -313,7 +313,7 @@ makehints(void)
|
|||||||
*/
|
*/
|
||||||
if (versreq <= CONFIGVERS_ENVMODE_REQ)
|
if (versreq <= CONFIGVERS_ENVMODE_REQ)
|
||||||
fprintf(ofp, "int hintmode = %d;\n",
|
fprintf(ofp, "int hintmode = %d;\n",
|
||||||
STAILQ_EMPTY(&hints) ? 1 : 0);
|
!STAILQ_EMPTY(&hints) ? 1 : 0);
|
||||||
fprintf(ofp, "char static_hints[] = {\n");
|
fprintf(ofp, "char static_hints[] = {\n");
|
||||||
nvl = nvlist_create(0);
|
nvl = nvlist_create(0);
|
||||||
STAILQ_FOREACH(hint, &hints, hint_next) {
|
STAILQ_FOREACH(hint, &hints, hint_next) {
|
||||||
@ -354,7 +354,7 @@ makeenv(void)
|
|||||||
*/
|
*/
|
||||||
if (versreq <= CONFIGVERS_ENVMODE_REQ)
|
if (versreq <= CONFIGVERS_ENVMODE_REQ)
|
||||||
fprintf(ofp, "int envmode = %d;\n",
|
fprintf(ofp, "int envmode = %d;\n",
|
||||||
STAILQ_EMPTY(&envvars) ? 1 : 0);
|
!STAILQ_EMPTY(&envvars) ? 1 : 0);
|
||||||
fprintf(ofp, "char static_env[] = {\n");
|
fprintf(ofp, "char static_env[] = {\n");
|
||||||
nvl = nvlist_create(0);
|
nvl = nvlist_create(0);
|
||||||
STAILQ_FOREACH(envvar, &envvars, envvar_next) {
|
STAILQ_FOREACH(envvar, &envvars, envvar_next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user