X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fbinarybuffer.h;fp=src%2Fhelper%2Fbinarybuffer.h;h=f1da8c4aa3cb070aa1c7140e6061a035fe82921e;hp=b035779af571b70782956b6873af13e613d6a7d7;hb=69ff7354d9c9accf09374772310098f1f00e8ccb;hpb=1461237073e377d315799999b8e29f1605084449 diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index b035779af5..f1da8c4aa3 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -235,7 +235,7 @@ 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 */ size_t unhexify(uint8_t *bin, const char *hex, size_t count); -int hexify(char *hex, const char *bin, int count, int out_maxlen); +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 /* OPENOCD_HELPER_BINARYBUFFER_H */