comparison dbutil.c @ 40:b4874d772210

- Added terminal mode handling etc for the client, and window change - Refactored the terminal-mode handling for the server - Improved session closing for the client
author Matt Johnston <matt@ucc.asn.au>
date Sun, 01 Aug 2004 08:54:01 +0000
parents 0969767bca0d
children 9ee8996a375f
comparison
equal deleted inserted replaced
39:0883c0906870 40:b4874d772210
101 101
102 102
103 #ifdef DEBUG_TRACE 103 #ifdef DEBUG_TRACE
104 void dropbear_trace(const char* format, ...) { 104 void dropbear_trace(const char* format, ...) {
105 105
106 #if 0
106 va_list param; 107 va_list param;
107 108
108 va_start(param, format); 109 va_start(param, format);
109 fprintf(stderr, "TRACE: "); 110 fprintf(stderr, "TRACE: ");
110 vfprintf(stderr, format, param); 111 vfprintf(stderr, format, param);
111 fprintf(stderr, "\n"); 112 fprintf(stderr, "\n");
112 va_end(param); 113 va_end(param);
114 #endif
113 } 115 }
114 #endif /* DEBUG_TRACE */ 116 #endif /* DEBUG_TRACE */
115 117
116 /* Connect via TCP to a host. Connection will try ipv4 or ipv6, will 118 /* Connect via TCP to a host. Connection will try ipv4 or ipv6, will
117 * return immediately if nonblocking is set */ 119 * return immediately if nonblocking is set */