From: Klas Lindfors Date: Tue, 24 Sep 2013 10:30:36 +0000 (+0200) Subject: make _yk_hexdump() static and declare it X-Git-Tag: v1.14.2~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae81ce52589eabc8f6099e284c60abcdf43c03f5;p=yubikey-personalization make _yk_hexdump() static and declare it --- 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