mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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)
|
||||
fprintf(ofp, "int hintmode = %d;\n",
|
||||
STAILQ_EMPTY(&hints) ? 1 : 0);
|
||||
!STAILQ_EMPTY(&hints) ? 1 : 0);
|
||||
fprintf(ofp, "char static_hints[] = {\n");
|
||||
nvl = nvlist_create(0);
|
||||
STAILQ_FOREACH(hint, &hints, hint_next) {
|
||||
|
@ -354,7 +354,7 @@ makeenv(void)
|
|||
*/
|
||||
if (versreq <= CONFIGVERS_ENVMODE_REQ)
|
||||
fprintf(ofp, "int envmode = %d;\n",
|
||||
STAILQ_EMPTY(&envvars) ? 1 : 0);
|
||||
!STAILQ_EMPTY(&envvars) ? 1 : 0);
|
||||
fprintf(ofp, "char static_env[] = {\n");
|
||||
nvl = nvlist_create(0);
|
||||
STAILQ_FOREACH(envvar, &envvars, envvar_next) {
|
||||
|
|
Loading…
Reference in a new issue