aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-21 02:45:27 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-21 03:29:35 +0200
commit6542353daeb2d542044b7a241fdb400a930d768b (patch)
treed24276e16218513b7e66bda2f660145234105036
parent6c90cc85dba04a45cddbf2250e5e805a4b107b36 (diff)
downloadponymap-6542353daeb2d542044b7a241fdb400a930d768b.tar.gz
ponymap-6542353daeb2d542044b7a241fdb400a930d768b.tar.xz
ponymap-6542353daeb2d542044b7a241fdb400a930d768b.zip
Fix output of results for multiple services
-rw-r--r--ponymap.c4
1 files 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