summaryrefslogtreecommitdiff
path: root/src/basic/architecture.h
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-23 17:22:18 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-24 12:00:41 +0100
commitb998ff21e141d1cbfe79fb32bf31cd26f5c00b27 (patch)
tree302c5caa0e3c7b01faaaf86e64d062aef9f99c01 /src/basic/architecture.h
parent91ee7c5ebda88efe112d432d63cb5216806c828a (diff)
downloadsystemd-b998ff21e141d1cbfe79fb32bf31cd26f5c00b27.tar.gz
basic: Give architecure enum a name
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r--src/basic/architecture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h
index f0377c383e..d4f50141b4 100644
--- a/src/basic/architecture.h
+++ b/src/basic/architecture.h
@@ -10,7 +10,7 @@
* processor features, models, generations or even ABIs. Hence we
* focus on general family, and distinguish word width and endianness. */
-enum {
+typedef enum {
ARCHITECTURE_ALPHA,
ARCHITECTURE_ARC,
ARCHITECTURE_ARC_BE,
@@ -45,7 +45,7 @@ enum {
ARCHITECTURE_X86_64,
_ARCHITECTURE_MAX,
_ARCHITECTURE_INVALID = -EINVAL,
-};
+} Architecture;
int uname_architecture(void);