diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 19:08:20 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 21:26:07 +0200 |
commit | 26823f980d652f777aae6e6da95bc14f0e8990cd (patch) | |
tree | f9dcc8ba179aa3f302ca41c86a6a5b7b35014561 /src/shared/hwdb-util.c | |
parent | core/exec-invoke: document calling setpriority() after sched_setattr() (diff) | |
download | systemd-26823f980d652f777aae6e6da95bc14f0e8990cd.tar.xz systemd-26823f980d652f777aae6e6da95bc14f0e8990cd.zip |
hwdb: rename hwdb_bin_paths -> HWDB_BIN_PATHS
We usually use upper letters for constant definitions.
Diffstat (limited to 'src/shared/hwdb-util.c')
-rw-r--r-- | src/shared/hwdb-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/hwdb-util.c b/src/shared/hwdb-util.c index c99f510236..afc1f54da3 100644 --- a/src/shared/hwdb-util.c +++ b/src/shared/hwdb-util.c @@ -667,7 +667,7 @@ int hwdb_query(const char *modalias, const char *root) { assert(modalias); if (!isempty(root)) - NULSTR_FOREACH(p, hwdb_bin_paths) { + NULSTR_FOREACH(p, HWDB_BIN_PATHS) { _cleanup_free_ char *hwdb_bin = NULL; hwdb_bin = path_join(root, p); @@ -699,7 +699,7 @@ bool hwdb_should_reload(sd_hwdb *hwdb) { return false; /* if hwdb.bin doesn't exist anywhere, we need to update */ - NULSTR_FOREACH(p, hwdb_bin_paths) + NULSTR_FOREACH(p, HWDB_BIN_PATHS) if (stat(p, &st) >= 0) { found = true; break; |