From 20bcc0700ac8527f72df85e8477ba86dafcbb853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 19 Nov 2014 11:53:40 +0100 Subject: [PATCH] Changed output type of twc_hex2bin to (uint8_t *). --- src/twc-utils.c | 2 +- src/twc-utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twc-utils.c b/src/twc-utils.c index ed3b314..3f995ce 100644 --- a/src/twc-utils.c +++ b/src/twc-utils.c @@ -32,7 +32,7 @@ * Convert a hex string to it's binary equivalent of max size bytes. */ void -twc_hex2bin(const char *hex, size_t size, char *out) +twc_hex2bin(const char *hex, size_t size, uint8_t *out) { const char *position = hex; diff --git a/src/twc-utils.h b/src/twc-utils.h index 5d482b2..56e975f 100644 --- a/src/twc-utils.h +++ b/src/twc-utils.h @@ -25,7 +25,7 @@ #include void -twc_hex2bin(const char *hex, size_t size, char *out); +twc_hex2bin(const char *hex, size_t size, uint8_t *out); void twc_bin2hex(const uint8_t *bin, size_t size, char *out);