diff options
author | jsorg71 <jsorg71> | 2006-04-29 01:47:06 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-04-29 01:47:06 +0000 |
commit | 770a27bfb39a64cb742f73156cfb1071fe8fd603 (patch) | |
tree | e65373df2434b8c6718f82bc9a8f7430bb863111 /rdp/rdp_tcp.c | |
parent | b1b3ff9e7d31da5fbfeedd3df8e40be240112f9c (diff) | |
download | xrdp-proprietary-770a27bfb39a64cb742f73156cfb1071fe8fd603.tar.gz xrdp-proprietary-770a27bfb39a64cb742f73156cfb1071fe8fd603.zip |
printf -> writeln
Diffstat (limited to 'rdp/rdp_tcp.c')
-rw-r--r-- | rdp/rdp_tcp.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/rdp/rdp_tcp.c b/rdp/rdp_tcp.c index 83187860..0283ba1d 100644 --- a/rdp/rdp_tcp.c +++ b/rdp/rdp_tcp.c @@ -57,11 +57,11 @@ rdp_tcp_recv(struct rdp_tcp* self, struct stream* s, int len) { int rcvd; - DEBUG((" in rdp_tcp_recv gota get %d bytes on sck %d\r\n", + DEBUG((" in rdp_tcp_recv gota get %d bytes on sck %d", len, self->sck)); if (self->sck_closed) { - DEBUG((" out rdp_tcp_recv error sck closed\r\n")); + DEBUG((" out rdp_tcp_recv error sck closed")); return 1; } init_stream(s, len); @@ -77,14 +77,14 @@ rdp_tcp_recv(struct rdp_tcp* self, struct stream* s, int len) else { self->sck_closed = 1; - DEBUG((" out rdp_tcp_recv error unknown\r\n")); + DEBUG((" out rdp_tcp_recv error unknown")); return 1; } } else if (rcvd == 0) { self->sck_closed = 1; - DEBUG((" out rdp_tcp_recv error connection dropped\r\n")); + DEBUG((" out rdp_tcp_recv error connection dropped")); return 1; } else @@ -107,11 +107,11 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) if (self->sck_closed) { - DEBUG((" out rdp_tcp_send error sck closed\r\n")); + DEBUG((" out rdp_tcp_send error sck closed")); return 1; } len = s->end - s->data; - DEBUG((" in rdp_tcp_send gota send %d bytes on sck %d\r\n", len, + DEBUG((" in rdp_tcp_send gota send %d bytes on sck %d", len, self->sck)); total = 0; while (total < len) @@ -126,14 +126,14 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) else { self->sck_closed = 1; - DEBUG((" out rdp_tcp_send error unknown\r\n")); + DEBUG((" out rdp_tcp_send error unknown")); return 1; } } else if (sent == 0) { self->sck_closed = 1; - DEBUG((" out rdp_tcp_send error connection dropped\r\n")); + DEBUG((" out rdp_tcp_send error connection dropped")); return 1; } else @@ -149,7 +149,7 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) int APP_CC rdp_tcp_connect(struct rdp_tcp* self, char* ip, char* port) { - DEBUG((" in rdp_tcp_connect ip %s port %s\r\n", ip, port)); + DEBUG((" in rdp_tcp_connect ip %s port %s", ip, port)); self->sck = g_tcp_socket(); if (g_tcp_connect(self->sck, ip, port) == 0) { @@ -157,10 +157,10 @@ rdp_tcp_connect(struct rdp_tcp* self, char* ip, char* port) } else { - DEBUG((" out rdp_tcp_connect error g_tcp_connect failed\r\n")); + DEBUG((" out rdp_tcp_connect error g_tcp_connect failed")); return 1; } - DEBUG((" out rdp_tcp_connect\r\n")); + DEBUG((" out rdp_tcp_connect")); return 0; } |