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 dc2acb3..1857170 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -333,13 +333,13 @@ static PianoStation_t **BarSortedStations (PianoStation_t *unsortedStations,
* @param called if input was not a number
* @return pointer to selected station or NULL
*/
-PianoStation_t *BarUiSelectStation (BarApp_t *app, const char *prompt,
- BarUiSelectStationCallback_t callback) {
+PianoStation_t *BarUiSelectStation (BarApp_t *app, PianoStation_t *stations,
+ const char *prompt, BarUiSelectStationCallback_t callback) {
PianoStation_t **sortedStations = NULL, *retStation = NULL;
size_t stationCount, i;
char buf[100];
- if (app->ph.stations == NULL) {
+ if (stations == NULL) {
BarUiMsg (&app->settings, MSG_ERR, "No station available.\n");
return NULL;
}
@@ -347,7 +347,7 @@ PianoStation_t *BarUiSelectStation (BarApp_t *app, const char *prompt,
memset (buf, 0, sizeof (buf));
/* sort and print stations */
- sortedStations = BarSortedStations (app->ph.stations, &stationCount,
+ sortedStations = BarSortedStations (stations, &stationCount,
app->settings.sortOrder);
do {