NULSTR_FOREACH(i, load_fragment_gperf_nulstr) {
const char *rvalue = "OTHER", *lvalue;
- unsigned j;
+ const ConfigPerfItem *p;
size_t prefix_len;
const char *dot;
- const ConfigPerfItem *p;
+ unsigned j;
assert_se(p = load_fragment_gperf_lookup(i, strlen(i)));
+ /* Hide legacy settings */
+ if (p->parse == config_parse_warn_compat &&
+ p->ltype == DISABLED_LEGACY)
+ continue;
+
+ for (j = 0; j < ELEMENTSOF(table); j++)
+ if (p->parse == table[j].callback) {
+ rvalue = table[j].rvalue;
+ break;
+ }
+
dot = strchr(i, '.');
lvalue = dot ? dot + 1 : i;
prefix_len = dot-i;
fprintf(f, "[%.*s]\n", (int) prefix_len, i);
}
- for (j = 0; j < ELEMENTSOF(table); j++)
- if (p->parse == table[j].callback) {
- rvalue = table[j].rvalue;
- break;
- }
-
fprintf(f, "%s=%s\n", lvalue, rvalue);
prev = i;
}