diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-12-23 21:59:34 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-12-23 21:59:34 +0100 |
commit | cad2be0b4ffd9490ca83cdb355b6402838811413 (patch) | |
tree | a798f3199bbab548362bf95f49055b80dfdf3026 /src/ui.c | |
parent | 65517aebee0a7624b31dd9ce481e7f00ece3d497 (diff) | |
download | pianobar-cad2be0b4ffd9490ca83cdb355b6402838811413.tar.gz pianobar-cad2be0b4ffd9490ca83cdb355b6402838811413.tar.bz2 pianobar-cad2be0b4ffd9490ca83cdb355b6402838811413.zip |
Fix warnings found by -Wcast-qual
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |