chiark / gitweb /
*** empty log message ***
[sympathy.git] / apps / mainloop.c
index ad2812e6cd7db5cf38e30f8e49726dbee977fa83..9e378d18b0a6ad8549aa08a6d1b9099af9173b15 100644 (file)
@@ -6,10 +6,20 @@
  *
  */
 
-static char rcsid[] = "$Id$";
+static char rcsid[] =
+  "$Id$";
 
 /*
  * $Log$
+ * Revision 1.12  2008/02/26 23:23:16  james
+ * *** empty log message ***
+ *
+ * Revision 1.11  2008/02/24 00:43:55  james
+ * *** empty log message ***
+ *
+ * Revision 1.10  2008/02/23 13:05:57  staffcvs
+ * *** empty log message ***
+ *
  * Revision 1.9  2008/02/23 11:48:51  james
  * *** empty log message ***
  *
@@ -81,6 +91,8 @@ static char rcsid[] = "$Id$";
 
 #include "clients.h"
 
+Context *context;
+
 typedef struct
 {
   int nclients;
@@ -316,7 +328,7 @@ check_status (Context * c, Clients * cs)
         }
       else if (c->tp->guessed_baud > 0)
         {
-          ptr += sprintf (ptr, " try %d", status.baud / c->tp->guessed_baud);
+          ptr += sprintf (ptr, " try %db", c->tp->guessed_baud);
         }
     }
 
@@ -382,6 +394,8 @@ mainloop (TTY * tty, Socket * server_socket, Socket * client_socket,
   Context c = { 0 };
   Clients *clients;
 
+  context=&c;
+
   c.tp = tty_parser_new ();
   c.u = utf8_new ();