Mercurial > dropbear
comparison cli-main.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 | e3adf4cf5465 |
children | 2e9d1f29c50f |
comparison
equal
deleted
inserted
replaced
107:d3eb1fa8484e | 108:10f4d3319780 |
---|---|
94 _dropbear_log(LOG_INFO, fmtbuf, param); | 94 _dropbear_log(LOG_INFO, fmtbuf, param); |
95 | 95 |
96 exit(exitcode); | 96 exit(exitcode); |
97 } | 97 } |
98 | 98 |
99 static void cli_dropbear_log(int priority, const char* format, va_list param) { | 99 static void cli_dropbear_log(int UNUSED(priority), |
100 const char* format, va_list param) { | |
100 | 101 |
101 char printbuf[1024]; | 102 char printbuf[1024]; |
102 | 103 |
103 vsnprintf(printbuf, sizeof(printbuf), format, param); | 104 vsnprintf(printbuf, sizeof(printbuf), format, param); |
104 | 105 |