We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec971e commit 37369d8Copy full SHA for 37369d8
1 file changed
tests/hwtable.c
@@ -247,23 +247,11 @@ static void write_section(FILE *ff, const char *section,
247
248
static void write_defaults(const struct hwt_state *hwt)
249
{
250
- static const char bindings_name[] = "bindings";
251
static struct key_value defaults[] = {
252
- { "config_dir", NULL },
253
- { "bindings_file", NULL },
254
- { "multipath_dir", NULL },
255
- { "detect_prio", "no" },
+ { "detect_prio", "no" },
256
{ "detect_checker", "no" },
257
};
258
- char buf[sizeof(template) + sizeof(bindings_name)];
259
- char dirbuf[PATH_MAX];
260
-
261
- snprintf(buf, sizeof(buf), "%s/%s", hwt->tmpname, bindings_name);
262
- defaults[0].value = hwt->dirname;
263
- defaults[1].value = buf;
264
- assert_ptr_not_equal(getcwd(dirbuf, sizeof(dirbuf)), NULL);
265
- strncat(dirbuf, "/lib", sizeof(dirbuf) - 5);
266
- defaults[2].value = dirbuf;
+
267
write_section(hwt->config_file, "defaults",
268
ARRAY_SIZE(defaults), defaults);
269
}
0 commit comments