X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/b18a1d7b97679cf304b8badd9d011dffd0e7bcdf..ed509ebded419ce594b9c6a6942cf41033a7a16b:/ipif/hex.c diff --git a/ipif/hex.c b/ipif/hex.c index fd889a2..dc0c749 100644 --- a/ipif/hex.c +++ b/ipif/hex.c @@ -7,7 +7,7 @@ #include "hex.h" -const char *tohex(uint8 *data, int len, char *buf) { +const char *tohex(uint8_t *data, int len, char *buf) { char *p; for (p= buf; @@ -17,7 +17,7 @@ const char *tohex(uint8 *data, int len, char *buf) { return buf; } -void unhex(const char *what, const char *txt, uint8 *datar, int *lenr, +void unhex(const char *what, const char *txt, uint8_t *datar, int *lenr, int minlen, int maxlen) { int l, v; char buf[3], *ep;