summaryrefslogtreecommitdiffstats
path: root/src/shared/hwdb-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-17 07:44:27 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-17 14:56:46 +0200
commitf9b3b990171078f846fbcdecf19a4dbcfe3986dc (patch)
treefb6390a438d8b0f8115ddfccea1fe145204716f8 /src/shared/hwdb-util.c
parentMerge pull request #24333 from yuwata/sysctl (diff)
downloadsystemd-f9b3b990171078f846fbcdecf19a4dbcfe3986dc.tar.xz
systemd-f9b3b990171078f846fbcdecf19a4dbcfe3986dc.zip
udev: rename various validate() -> should_reload() for builtin commands
Previously, true by validate() means several configs are outdated and we need to reload configs. That's not intuitive for me. Let's rename the functions.
Diffstat (limited to 'src/shared/hwdb-util.c')
-rw-r--r--src/shared/hwdb-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/hwdb-util.c b/src/shared/hwdb-util.c
index 1ec861f76f..6a680fb3be 100644
--- a/src/shared/hwdb-util.c
+++ b/src/shared/hwdb-util.c
@@ -680,7 +680,7 @@ int hwdb_query(const char *modalias, const char *root) {
return 0;
}
-bool hwdb_validate(sd_hwdb *hwdb) {
+bool hwdb_should_reload(sd_hwdb *hwdb) {
bool found = false;
const char* p;
struct stat st;