Mercurial > dropbear
diff fuzz-common.c @ 1558:2f64cb3d3007 fuzz
- #if not #ifdef for DROPBEAR_FUZZ
- fix some unused variables
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 28 Feb 2018 21:40:08 +0800 |
parents | 66a1a2547133 |
children | 92c93b4a3646 |
line wrap: on
line diff
--- a/fuzz-common.c Wed Feb 28 21:28:59 2018 +0800 +++ b/fuzz-common.c Wed Feb 28 21:40:08 2018 +0800 @@ -42,21 +42,21 @@ return DROPBEAR_SUCCESS; } +#if DEBUG_TRACE static void fuzz_dropbear_log(int UNUSED(priority), const char* format, va_list param) { - - char printbuf[1024]; - -#if DEBUG_TRACE if (debug_trace) { + char printbuf[1024]; vsnprintf(printbuf, sizeof(printbuf), format, param); fprintf(stderr, "%s\n", printbuf); } -#endif } +#else +static void fuzz_dropbear_log(int UNUSED(priority), const char* UNUSED(format), va_list UNUSED(param)) { + /* No print */ +} +#endif /* DEBUG_TRACE */ void fuzz_svr_setup(void) { - struct passwd *pw; - fuzz_common_setup(); _dropbear_exit = svr_dropbear_exit;