summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-29 19:14:09 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-29 19:14:09 +0200
commit563067ad265f4704395165177fb5b83bc9628c66 (patch)
tree05a931d96e5b5b2d9fc1c69049de36407af0349f /src/analyze
parente04ed6db6b44681b7a7876b9c4a1e6adaf877670 (diff)
downloadsystemd-563067ad265f4704395165177fb5b83bc9628c66.tar.gz
analyze: always use "int" to display exit status values
That's what it actually is, hence let's use that and cast when the type is bigger.
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 45e41fedee..199d49f5b9 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -1653,7 +1653,7 @@ static int dump_exit_codes(int argc, char *argv[], void *userdata) {
r = table_add_many(table,
TABLE_STRING, exit_status_mappings[i].name,
- TABLE_UINT, i,
+ TABLE_INT, (int) i,
TABLE_STRING, exit_status_class(i));
if (r < 0)
return r;
@@ -1669,7 +1669,7 @@ static int dump_exit_codes(int argc, char *argv[], void *userdata) {
assert(code >= 0 && (size_t) code < ELEMENTSOF(exit_status_mappings));
r = table_add_many(table,
TABLE_STRING, exit_status_mappings[code].name ?: "-",
- TABLE_UINT, code,
+ TABLE_INT, code,
TABLE_STRING, exit_status_class(code) ?: "-");
if (r < 0)
return r;