summaryrefslogtreecommitdiffstats
path: root/src/basic/architecture.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-04-04 12:46:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-04 19:19:37 +0200
commit6b41a7b281943d4aef9758988baed573a9b4d67a (patch)
treeda0657b7c7771c3bfb6da460cba933c07c6266a2 /src/basic/architecture.h
parentman: properly conditionalize kernel-install man page (diff)
downloadsystemd-6b41a7b281943d4aef9758988baed573a9b4d67a.tar.xz
systemd-6b41a7b281943d4aef9758988baed573a9b4d67a.zip
tree-wide: use 'Architecture' type consistently across the tree
Some parts of our tree used 'Architecture' for storing architectures, others used ints. Let's unify on the former. Inspired by #22952's rework of the 'Virtualization' enum.
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r--src/basic/architecture.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h
index cb4c79b84e..b86f5f35d0 100644
--- a/src/basic/architecture.h
+++ b/src/basic/architecture.h
@@ -48,7 +48,7 @@ typedef enum {
_ARCHITECTURE_INVALID = -EINVAL,
} Architecture;
-int uname_architecture(void);
+Architecture uname_architecture(void);
/*
* LIB_ARCH_TUPLE should resolve to the local library path
@@ -243,5 +243,5 @@ int uname_architecture(void);
# error "Please register your architecture here!"
#endif
-const char *architecture_to_string(int a) _const_;
-int architecture_from_string(const char *s) _pure_;
+const char *architecture_to_string(Architecture a) _const_;
+Architecture architecture_from_string(const char *s) _pure_;