summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui.c b/src/ui.c
index c474a3d..d24db1c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -235,16 +235,16 @@ int BarUiPianoCall (BarApp_t * const app, PianoRequestType_t type,
/* Station sorting functions */
static inline int BarStationQuickmix01Cmp (const void *a, const void *b) {
- const PianoStation_t *stationA = *((PianoStation_t **) a),
- *stationB = *((PianoStation_t **) b);
+ const PianoStation_t *stationA = *((PianoStation_t * const *) a),
+ *stationB = *((PianoStation_t * const *) b);
return stationA->isQuickMix - stationB->isQuickMix;
}
/* sort by station name from a to z, case insensitive
*/
static inline int BarStationNameAZCmp (const void *a, const void *b) {
- const PianoStation_t *stationA = *((PianoStation_t **) a),
- *stationB = *((PianoStation_t **) b);
+ const PianoStation_t *stationA = *((PianoStation_t * const *) a),
+ *stationB = *((PianoStation_t * const *) b);
return strcasecmp (stationA->name, stationB->name);
}