From ae81ce52589eabc8f6099e284c60abcdf43c03f5 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 24 Sep 2013 12:30:36 +0200 Subject: [PATCH] make _yk_hexdump() static and declare it --- ykcore/ykcore.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index 627cbb8..f129e5b 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -41,6 +41,10 @@ #define Sleep(x) usleep((x)*1000) #endif +#ifdef YK_DEBUG +static void _yk_hexdump(void *, int); +#endif + /* * Yubikey low-level interface section 2.4 (Report arbitration polling) specifies * a 600 ms timeout for a Yubikey to process something written to it. @@ -713,8 +717,9 @@ uint16_t yk_endian_swap_16(uint16_t x) return x; } +#ifdef YK_DEBUG /* Private little hexdump function for debugging */ -void _yk_hexdump(void *buffer, int size) +static void _yk_hexdump(void *buffer, int size) { unsigned char *p = buffer; int i; @@ -725,3 +730,4 @@ void _yk_hexdump(void *buffer, int size) fprintf(stderr, "\n"); fflush(stderr); } +#endif -- 2.39.5