diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-21 02:45:27 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-21 03:29:35 +0200 |
commit | 6542353daeb2d542044b7a241fdb400a930d768b (patch) | |
tree | d24276e16218513b7e66bda2f660145234105036 | |
parent | 6c90cc85dba04a45cddbf2250e5e805a4b107b36 (diff) | |
download | ponymap-6542353daeb2d542044b7a241fdb400a930d768b.tar.gz ponymap-6542353daeb2d542044b7a241fdb400a930d768b.tar.xz ponymap-6542353daeb2d542044b7a241fdb400a930d768b.zip |
Fix output of results for multiple services
-rw-r--r-- | ponymap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |