Fix output of results for multiple services

This commit is contained in:
Přemysl Eric Janouch 2014-09-21 02:45:27 +02:00
parent 6c90cc85db
commit 6542353dae
1 changed files with 2 additions and 2 deletions

View File

@ -1379,8 +1379,8 @@ target_dump_terminal (struct target *self, struct target_dump_data *data)
static int
unit_cmp_by_service (const void *ax, const void *bx)
{
const struct unit *a = ax, *b = bx;
return strcmp (a->service->name, b->service->name);
const struct unit **a = (void *) ax, **b = (void *) bx;
return strcmp ((*a)->service->name, (*b)->service->name);
}
static void