]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
inhibit: drop redundant table_set_header() caller
authorLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 15:16:14 +0000 (16:16 +0100)
committerMike Yuan <me@yhndnzj.com>
Fri, 6 Feb 2026 19:10:24 +0000 (20:10 +0100)
The immediately following table_print_with_pager() call already
processes arg_legend, no need to do this manually first.

src/login/inhibit.c

index 4df17d2d69973b77c9993bb715b5472f2598b31b..493f06f24e4e4eb987dc657d9bdcbad4f603d296 100644 (file)
@@ -153,8 +153,6 @@ static int print_inhibitors(sd_bus *bus) {
                 if (r < 0)
                         return table_log_sort_error(r);
 
-                table_set_header(table, arg_legend);
-
                 r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend);
                 if (r < 0)
                         return r;