chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Loosen playlist command rights.
[disorder]
/
disobedience
/
client.c
diff --git
a/disobedience/client.c
b/disobedience/client.c
index 66a5bfc0f59fe331c8eb933130b3bb16c5d37dc1..80aef8864365856cdda3293dec33b1254c455f3a 100644
(file)
--- a/
disobedience/client.c
+++ b/
disobedience/client.c
@@
-129,17
+129,11
@@
static void gtkclient_comms_error(void attribute((unused)) *u,
* status bar.
*/
static void gtkclient_protocol_error(void attribute((unused)) *u,
* status bar.
*/
static void gtkclient_protocol_error(void attribute((unused)) *u,
- void *v,
- int code,
+ void
attribute((unused))
*v,
+ int
attribute((unused))
code,
const char *msg) {
const char *msg) {
- struct callbackdata *cbd = v;
-
- fprintf(stderr, "protocol error: %s\n", msg);
D(("gtkclient_protocol_error %s", msg));
D(("gtkclient_protocol_error %s", msg));
- if(cbd && cbd->onerror)
- cbd->onerror(cbd, code, msg);
- else
- gtk_label_set_text(GTK_LABEL(report_label), msg);
+ gtk_label_set_text(GTK_LABEL(report_label), msg);
}
/** @brief Report callback from eclient */
}
/** @brief Report callback from eclient */