Fix output of results for multiple services
This commit is contained in:
parent
6c90cc85db
commit
6542353dae
|
@ -1379,8 +1379,8 @@ target_dump_terminal (struct target *self, struct target_dump_data *data)
|
||||||
static int
|
static int
|
||||||
unit_cmp_by_service (const void *ax, const void *bx)
|
unit_cmp_by_service (const void *ax, const void *bx)
|
||||||
{
|
{
|
||||||
const struct unit *a = ax, *b = bx;
|
const struct unit **a = (void *) ax, **b = (void *) bx;
|
||||||
return strcmp (a->service->name, b->service->name);
|
return strcmp ((*a)->service->name, (*b)->service->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue