summaryrefslogtreecommitdiffstats
path: root/src/basic/architecture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/architecture.c')
-rw-r--r--src/basic/architecture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/architecture.c b/src/basic/architecture.c
index 488367c188..c7d5b0d8bd 100644
--- a/src/basic/architecture.c
+++ b/src/basic/architecture.c
@@ -130,9 +130,9 @@ Architecture uname_architecture(void) {
assert_se(uname(&u) >= 0);
- for (size_t i = 0; i < ELEMENTSOF(arch_map); i++)
- if (streq(arch_map[i].machine, u.machine))
- return cached = arch_map[i].arch;
+ FOREACH_ELEMENT(entry, arch_map)
+ if (streq(entry->machine, u.machine))
+ return cached = entry->arch;
assert_not_reached();
return _ARCHITECTURE_INVALID;