libbb: factor out hex2bin() for infiniband address parser
function old new delta hex2bin - 149 +149 in_ib 172 27 -145 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -734,6 +734,8 @@ const char *make_human_readable_str(unsigned long long size,
|
||||
unsigned long block_size, unsigned long display_unit) FAST_FUNC;
|
||||
/* Put a string of hex bytes ("1b2e66fe"...), return advanced pointer */
|
||||
char *bin2hex(char *buf, const char *cp, int count) FAST_FUNC;
|
||||
/* Reverse */
|
||||
char* hex2bin(char *dst, const char *str, int count) FAST_FUNC;
|
||||
|
||||
/* Generate a UUID */
|
||||
void generate_uuid(uint8_t *buf) FAST_FUNC;
|
||||
|
Reference in New Issue
Block a user