aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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