]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/str-hex.c
Merge branch 'master' into dev-sizet
[libucw.git] / ucw / str-hex.c
index 8cf27cb2d34c76e70e9ebe3ccb5301fb17652545..f8595edfb8a233213fd3479afa9d9d11ac182cf0 100644 (file)
@@ -18,7 +18,7 @@ hex_make(uint x)
 }
 
 void
-mem_to_hex(char *dest, const byte *src, uint bytes, uint flags)
+mem_to_hex(char *dest, const byte *src, size_t bytes, uns flags)
 {
   uint sep = flags & 0xff;
 
@@ -48,7 +48,7 @@ hex_parse(uint c)
 }
 
 const char *
-hex_to_mem(byte *dest, const char *src, uint max_bytes, uint flags)
+hex_to_mem(byte *dest, const char *src, size_t max_bytes, uns flags)
 {
   uint sep = flags & 0xff;
   while (max_bytes-- && Cxdigit(src[0]) && Cxdigit(src[1]))