chiark / gitweb /
Disobedience login window now has a 'remote' switch. When off it will
[disorder] / disobedience / client.c
index 66a5bfc0f59fe331c8eb933130b3bb16c5d37dc1..80aef8864365856cdda3293dec33b1254c455f3a 100644 (file)
@@ -129,17 +129,11 @@ static void gtkclient_comms_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) {
-  struct callbackdata *cbd = v;
-
-  fprintf(stderr, "protocol error: %s\n", 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 */