diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-04 12:46:03 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-04 19:19:37 +0200 |
commit | 6b41a7b281943d4aef9758988baed573a9b4d67a (patch) | |
tree | da0657b7c7771c3bfb6da460cba933c07c6266a2 /src/basic/process-util.c | |
parent | man: properly conditionalize kernel-install man page (diff) | |
download | systemd-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/process-util.c')
-rw-r--r-- | src/basic/process-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c index 204a5d9490..6980e0c4f6 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -1026,7 +1026,7 @@ bool oom_score_adjust_is_valid(int oa) { } unsigned long personality_from_string(const char *p) { - int architecture; + Architecture architecture; if (!p) return PERSONALITY_INVALID; @@ -1050,7 +1050,7 @@ unsigned long personality_from_string(const char *p) { } const char* personality_to_string(unsigned long p) { - int architecture = _ARCHITECTURE_INVALID; + Architecture architecture = _ARCHITECTURE_INVALID; if (p == PER_LINUX) architecture = native_architecture(); |