Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/raw.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2000-07-26 16:13:51 +0400
committerSimon Tatham <anakin@pobox.com>2000-07-26 16:13:51 +0400
commit0d5d39064a0d078af47e3158313dd2b82bfd167c (patch)
tree5a24bc530194c84b8da972f98f81dedae350fa10 /raw.c
parent1657255cd7e5dfdb14a9cd5ec0c8e5873b1f7da6 (diff)
Robert de Bath's Big Patch, part 1
[originally from svn r516]
Diffstat (limited to 'raw.c')
-rw-r--r--raw.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/raw.c b/raw.c
index 3023d95a..e65190fa 100644
--- a/raw.c
+++ b/raw.c
@@ -14,8 +14,6 @@
static SOCKET s = INVALID_SOCKET;
-#define iswritable(x) ( (x) != IAC && (x) != CR )
-
static void raw_size(void);
static int sb_opt, sb_len;
@@ -50,16 +48,8 @@ static void s_write (void *buf, int len) {
}
static void c_write (char *buf, int len) {
- while (len--) {
- int new_head = (inbuf_head + 1) & INBUF_MASK;
- if (new_head != inbuf_reap) {
- inbuf[inbuf_head] = *buf++;
- inbuf_head = new_head;
- } else {
- term_out();
- if( inbuf_head == inbuf_reap ) len++; else break;
- }
- }
+ while (len--)
+ c_write1(*buf++);
}
/*