chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / ansi.c
index 019422821bf5e5fe49c9c8128b2b2a0cfe680651..905866b39643485dac74cbbd36fe96b35de8a7bc 100644 (file)
@@ -10,6 +10,12 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.26  2008/02/20 20:16:07  james
+ * *** empty log message ***
+ *
+ * Revision 1.25  2008/02/20 19:44:37  james
+ * @@
+ *
  * Revision 1.24  2008/02/20 19:36:06  james
  * @@
  *
@@ -817,7 +823,7 @@ ansi_dispatch (ANSI * a, Context * c)
 
 
   if (!a->terminal)
-    return;
+    return 0;
 
   red = a->terminal->recv (a->terminal, buf, sizeof (buf));
   if (red <= 0)
@@ -863,7 +869,7 @@ static void ansi_free(ANSI *a)
 
 }
 
-ANSI *ansi_new_from_terminal(ANSI *a,TTY *t)
+ANSI *ansi_new_from_terminal(TTY *t)
 {
 ANSI *ret;
 
@@ -876,5 +882,7 @@ ret->update=ansi_update;
 ret->reset=ansi_reset;
 ret->terminal_reset=ansi_terminal_reset;
 ret->close=ansi_free;
+ret->dispatch=ansi_dispatch;
 
+return ret;
 }