From 6542353daeb2d542044b7a241fdb400a930d768b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 21 Sep 2014 02:45:27 +0200 Subject: Fix output of results for multiple services --- ponymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponymap.c b/ponymap.c index b0fd94a..6b8155c 100644 --- a/ponymap.c +++ b/ponymap.c @@ -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 -- cgit v1.2.3