mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
Fix ordering of params for conf_files_list_strv
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
74b55d4d6d
commit
f90cec7e84
@ -1624,7 +1624,7 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names)
|
||||
return udev_rules_unref(rules);
|
||||
udev_rules_check_timestamp(rules);
|
||||
|
||||
r = conf_files_list_strv(&files, NULL, ".rules", (const char **)rules->dirs);
|
||||
r = conf_files_list_strv(&files, ".rules", NULL, (const char **)rules->dirs);
|
||||
if (r < 0) {
|
||||
log_error("failed to enumerate rules files: %s\n", strerror(-r));
|
||||
return udev_rules_unref(rules);
|
||||
|
@ -546,7 +546,7 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) {
|
||||
}
|
||||
trie->nodes_count++;
|
||||
|
||||
err = conf_files_list_strv(&files, root_path, ".hwdb", (const char **)conf_file_dirs);
|
||||
err = conf_files_list_strv(&files, ".hwdb", root_path, (const char **)conf_file_dirs);
|
||||
if (err < 0) {
|
||||
log_error("failed to enumerate hwdb files: %s\n", strerror(-err));
|
||||
rc = EXIT_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user