systemctl: use unsigned for job_count
As, the number of units `c` is unsigned.
This commit is contained in:
parent
810394481b
commit
ca7b9e1e0a
|
@ -90,6 +90,7 @@ static int get_unit_list_recursive(
|
|||
|
||||
static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
|
||||
_cleanup_(table_unrefp) Table *table = NULL;
|
||||
unsigned job_count = 0;
|
||||
int r;
|
||||
|
||||
table = table_new("", "unit", "load", "active", "sub", "job", "description");
|
||||
|
@ -108,7 +109,6 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
|
|||
|
||||
(void) table_set_empty_string(table, "-");
|
||||
|
||||
int job_count = 0;
|
||||
for (const UnitInfo *u = unit_infos; unit_infos && u < unit_infos + c; u++) {
|
||||
_cleanup_free_ char *j = NULL;
|
||||
const char *on_underline = "", *on_loaded = "", *on_active = "";
|
||||
|
|
Loading…
Reference in a new issue