Skip to content

Commit 37369d8

Browse files
committed
multipath-tools tests: hwtable: remove obsolete default options
Suggested-by: Xose Vazquez Perez <xose.vazquez@gmail.com> Signed-off-by: Martin Wilck <mwilck@suse.com>
1 parent eec971e commit 37369d8

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

tests/hwtable.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -247,23 +247,11 @@ static void write_section(FILE *ff, const char *section,
247247

248248
static void write_defaults(const struct hwt_state *hwt)
249249
{
250-
static const char bindings_name[] = "bindings";
251250
static struct key_value defaults[] = {
252-
{ "config_dir", NULL },
253-
{ "bindings_file", NULL },
254-
{ "multipath_dir", NULL },
255-
{ "detect_prio", "no" },
251+
{ "detect_prio", "no" },
256252
{ "detect_checker", "no" },
257253
};
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;
254+
267255
write_section(hwt->config_file, "defaults",
268256
ARRAY_SIZE(defaults), defaults);
269257
}

0 commit comments

Comments
 (0)