X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/681103026e308772b67867c6a4fbac1f0692faa2..e7b9569145b3469f9487ac31155410cd2d982a3c:/disobedience/queue.c diff --git a/disobedience/queue.c b/disobedience/queue.c index f298b1f..d69b34d 100644 --- a/disobedience/queue.c +++ b/disobedience/queue.c @@ -32,10 +32,10 @@ struct queue_entry *playing_track; time_t last_playing; static void queue_completed(void *v, - const char *error, + const char *err, struct queue_entry *q); static void playing_completed(void *v, - const char *error, + const char *err, struct queue_entry *q); /** @brief Called when either the actual queue or the playing track change */ @@ -75,10 +75,10 @@ static void queue_playing_changed(void) { /** @brief Update the queue itself */ static void queue_completed(void attribute((unused)) *v, - const char *error, + const char *err, struct queue_entry *q) { - if(error) { - popup_protocol_error(0, error); + if(err) { + popup_protocol_error(0, err); return; } actual_queue = q; @@ -87,10 +87,10 @@ static void queue_completed(void attribute((unused)) *v, /** @brief Update the playing track */ static void playing_completed(void attribute((unused)) *v, - const char *error, + const char *err, struct queue_entry *q) { - if(error) { - popup_protocol_error(0, error); + if(err) { + popup_protocol_error(0, err); return; } actual_playing_track = q; @@ -198,9 +198,9 @@ struct queuelike ql_queue = { static int queue_drag_target = -1; static void queue_move_completed(void attribute((unused)) *v, - const char *error) { - if(error) { - popup_protocol_error(0, error); + const char *err) { + if(err) { + popup_protocol_error(0, err); return; } /* The log should tell us the queue changed so we do no more here */