Commit 51e2c635 authored by hpi1's avatar hpi1

Remove useless return value

parent 24466667
Pipeline #19991 passed with stage
in 1 minute and 17 seconds
......@@ -145,7 +145,7 @@ int hexstring_to_hex_array(uint8_t *hex_array, uint32_t size,
* str must be allocated by caller
* size is the size of the hex_array
*/
int hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size)
void hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size)
{
unsigned int i;
......@@ -153,8 +153,6 @@ int hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size)
{
sprintf(str + (i*2), "%02x", hex_array[i]);
}
return 1;
}
char *str_dup(const char *str)
......
......@@ -26,7 +26,7 @@
BD_PRIVATE int hexstring_to_hex_array(uint8_t *hex_array, uint32_t size,
const char *hexstring);
BD_PRIVATE int hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size);
BD_PRIVATE void hex_array_to_hexstring(char *str, const uint8_t *hex_array, uint32_t size);
BD_PRIVATE char * str_dup(const char *str) BD_ATTR_MALLOC;
BD_PRIVATE char * str_printf(const char *fmt, ...) BD_ATTR_FORMAT_PRINTF(1,2) BD_ATTR_MALLOC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment