summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-02-26 14:51:59 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-02-26 14:51:59 +1100
commit534b2680a15d14e7e60274d5b29b812d44cc5a44 (patch)
tree4f62d40d2b9c779287c5d003f4be4757a62b2e65
parent5aea4aa522f61bb2f34c3055a7de203909dfae77 (diff)
Comment out hexdump().
Nothing currently uses them but they cause conflicts on at least FreeBSD, possibly others. ok djm@
-rw-r--r--xmss_commons.c2
-rw-r--r--xmss_commons.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/xmss_commons.c b/xmss_commons.c
index 0752f29b2..cf031f883 100644
--- a/xmss_commons.c
+++ b/xmss_commons.c
@@ -21,9 +21,11 @@ void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes)
21 } 21 }
22} 22}
23 23
24#if 0
24void hexdump(const unsigned char *a, size_t len) 25void hexdump(const unsigned char *a, size_t len)
25{ 26{
26 size_t i; 27 size_t i;
27 for (i = 0; i < len; i++) 28 for (i = 0; i < len; i++)
28 printf("%02x", a[i]); 29 printf("%02x", a[i]);
29} 30}
31#endif
diff --git a/xmss_commons.h b/xmss_commons.h
index 32fd4e2dc..2cb7cc555 100644
--- a/xmss_commons.h
+++ b/xmss_commons.h
@@ -11,5 +11,7 @@ Public domain.
11#include <stdint.h> 11#include <stdint.h>
12 12
13void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes); 13void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
14#if 0
14void hexdump(const unsigned char *a, size_t len); 15void hexdump(const unsigned char *a, size_t len);
15#endif \ No newline at end of file 16#endif
17#endif