chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abolish last vesiges of struct callbackdata
[disorder]
/
disobedience
/
client.c
diff --git
a/disobedience/client.c
b/disobedience/client.c
index d81aac2f34c90287204c27a71b13a4c8e859139c..a8d33a92d666e4343a06715f9d9dfdebea8c5de9 100644
(file)
--- a/
disobedience/client.c
+++ b/
disobedience/client.c
@@
-129,16
+129,11
@@
static void gtkclient_comms_error(void attribute((unused)) *u,
* original command and if none is supplied we pop up an error box.
*/
static void gtkclient_protocol_error(void attribute((unused)) *u,
* original command and if none is supplied we pop up an error box.
*/
static void gtkclient_protocol_error(void attribute((unused)) *u,
- void *v,
+ void
attribute((unused))
*v,
int code,
const char *msg) {
int code,
const char *msg) {
- struct callbackdata *cbd = v;
-
D(("gtkclient_protocol_error %s", msg));
D(("gtkclient_protocol_error %s", msg));
- if(cbd && cbd->onerror)
- cbd->onerror(cbd, code, msg);
- else
- popup_protocol_error(code, msg);
+ popup_protocol_error(code, msg);
}
/** @brief Report callback from eclient */
}
/** @brief Report callback from eclient */