X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fhelper%2Fbinarybuffer.h;h=f1da8c4aa3cb070aa1c7140e6061a035fe82921e;hb=7417feab29d987a2a68e376913b7c7f0999c0769;hp=a8343c2aa091a80a8715d898f383fb265c7a3f0c;hpb=d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69;p=openocd diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index a8343c2a..f1da8c4a 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -19,8 +19,8 @@ * along with this program. If not, see . * ***************************************************************************/ -#ifndef BINARYBUFFER_H -#define BINARYBUFFER_H +#ifndef OPENOCD_HELPER_BINARYBUFFER_H +#define OPENOCD_HELPER_BINARYBUFFER_H #include "list.h" @@ -234,8 +234,8 @@ void bit_copy_discard(struct bit_copy_queue *q); /* functions to convert to/from hex encoded buffer * used in ti-icdi driver and gdb server */ -int unhexify(char *bin, const char *hex, int count); -int hexify(char *hex, const char *bin, int count, int out_maxlen); +size_t unhexify(uint8_t *bin, const char *hex, size_t count); +size_t hexify(char *hex, const uint8_t *bin, size_t count, size_t out_maxlen); void buffer_shr(void *_buf, unsigned buf_len, unsigned count); -#endif /* BINARYBUFFER_H */ +#endif /* OPENOCD_HELPER_BINARYBUFFER_H */