]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/str-hex.c
Strtonum: Support u32 and s32
[libucw.git] / ucw / str-hex.c
index f8595edfb8a233213fd3479afa9d9d11ac182cf0..04290489c5c512373f768d7fa7e678191fab1baf 100644 (file)
@@ -18,7 +18,7 @@ hex_make(uint x)
 }
 
 void
-mem_to_hex(char *dest, const byte *src, size_t bytes, uns flags)
+mem_to_hex(char *dest, const byte *src, size_t bytes, uint flags)
 {
   uint sep = flags & 0xff;
 
@@ -48,7 +48,7 @@ hex_parse(uint c)
 }
 
 const char *
-hex_to_mem(byte *dest, const char *src, size_t max_bytes, uns flags)
+hex_to_mem(byte *dest, const char *src, size_t max_bytes, uint flags)
 {
   uint sep = flags & 0xff;
   while (max_bytes-- && Cxdigit(src[0]) && Cxdigit(src[1]))