Make bin_to_hex_alloc public scope

This commit is contained in:
twinaphex 2015-09-23 15:11:35 +02:00
parent a73f10f124
commit 1fcf5ab7bd
2 changed files with 3 additions and 1 deletions

View file

@ -201,7 +201,7 @@ int database_info_build_query(char *s, size_t len,
return 0;
}
static char *bin_to_hex_alloc(const uint8_t *data, size_t len)
char *bin_to_hex_alloc(const uint8_t *data, size_t len)
{
size_t i;
char *ret = (char*)malloc(len * 2 + 1);

View file

@ -113,6 +113,8 @@ void database_info_free(database_info_handle_t *handle);
int database_info_build_query(
char *query, size_t len, const char *label, const char *path);
char *bin_to_hex_alloc(const uint8_t *data, size_t len);
#ifdef __cplusplus
}
#endif