summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-03-03 14:01:02 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-03-05 07:10:13 +0900
commitef1e0b9a461c4baa12bdda47579c2c017209c3be (patch)
treeb2928249c657657213d2845ed04770b289b43e80 /src/machine
parent496db330041151138809c8f8579fa91d7897aabe (diff)
downloadsystemd-ef1e0b9a461c4baa12bdda47579c2c017209c3be.tar.gz
table: drop last SIZE_MAX from table_set_sort() and table_set_display()
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machinectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index e5befe50e1..68d2a59e95 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -239,7 +239,7 @@ static int show_table(Table *table, const char *word) {
assert(word);
if (table_get_rows(table) > 1 || OUTPUT_MODE_IS_JSON(arg_output)) {
- r = table_set_sort(table, (size_t) 0, (size_t) -1);
+ r = table_set_sort(table, (size_t) 0);
if (r < 0)
return table_log_sort_error(r);