comparison dbutil.c @ 108:10f4d3319780

- added circular buffering for channels - added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client
author Matt Johnston <matt@ucc.asn.au>
date Thu, 26 Aug 2004 13:16:40 +0000
parents d3eb1fa8484e
children 2e9d1f29c50f
comparison
equal deleted inserted replaced
107:d3eb1fa8484e 108:10f4d3319780
109 _dropbear_log(LOG_INFO, fmtbuf, param); 109 _dropbear_log(LOG_INFO, fmtbuf, param);
110 110
111 exit(exitcode); 111 exit(exitcode);
112 } 112 }
113 113
114 static void generic_dropbear_log(int priority, const char* format, 114 static void generic_dropbear_log(int UNUSED(priority), const char* format,
115 va_list param) { 115 va_list param) {
116 116
117 char printbuf[1024]; 117 char printbuf[1024];
118 118
119 vsnprintf(printbuf, sizeof(printbuf), format, param); 119 vsnprintf(printbuf, sizeof(printbuf), format, param);
144 144
145 va_start(param, format); 145 va_start(param, format);
146 fprintf(stderr, "TRACE: "); 146 fprintf(stderr, "TRACE: ");
147 vfprintf(stderr, format, param); 147 vfprintf(stderr, format, param);
148 fprintf(stderr, "\n"); 148 fprintf(stderr, "\n");
149 fflush(stderr);
150 va_end(param); 149 va_end(param);
151 } 150 }
152 #endif /* DEBUG_TRACE */ 151 #endif /* DEBUG_TRACE */
153 152
154 /* Listen on address:port. Unless address is NULL, in which case listen on 153 /* Listen on address:port. Unless address is NULL, in which case listen on