Experimental Rlogin support, thanks to Delian Delchev. Local flow
[u/mdw/putty] / ldisc.c
diff --git a/ldisc.c b/ldisc.c
index b72c772..80659cc 100644 (file)
--- a/ldisc.c
+++ b/ldisc.c
@@ -1,11 +1,4 @@
 #include <windows.h>
-#ifndef AUTO_WINSOCK
-#ifdef WINSOCK_TWO
-#include <winsock2.h>
-#else
-#include <winsock.h>
-#endif
-#endif
 #include <stdio.h>
 #include <ctype.h>
 
@@ -16,8 +9,11 @@
  */
 
 static void c_write (char *buf, int len) {
-    while (len--) 
-        c_write1(*buf++);
+    from_backend(0, buf, len);
+}
+
+static void c_write1 (char c) {
+    c_write(&c, 1);
 }
 
 static char *term_buf = NULL;