config(8): Invert checks; envmode/hintmode reflect "env provided"1

This commit is contained in:
Kyle Evans 2018-07-17 15:16:34 +00:00
parent 405f09319f
commit 761d344c16
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336419

View File

@ -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) {