mirror of https://github.com/schoebel/mars
fix signedness in crypto hash display
This commit is contained in:
parent
3715fdf93d
commit
c8e7d8b59d
|
@ -1220,8 +1220,8 @@ int _update_versionlink(struct mars_global *global, struct mars_dent *parent, in
|
|||
|
||||
char *new = NULL;
|
||||
char *data = brick_string_alloc(0);
|
||||
char *digest = brick_string_alloc(0);
|
||||
char *old = brick_string_alloc(0);
|
||||
unsigned char *digest = brick_string_alloc(0);
|
||||
|
||||
if (unlikely(!data || !digest || !old)) {
|
||||
MARS_ERR("no MEM\n");
|
||||
|
|
|
@ -126,7 +126,7 @@ extern int mars_power_button_recursive(struct mars_brick *brick, bool val, bool
|
|||
/* Crypto stuff
|
||||
*/
|
||||
extern int mars_digest_size;
|
||||
extern void mars_digest(void *digest, void *data, int len);
|
||||
extern void mars_digest(unsigned char *digest, void *data, int len);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ struct crypto_hash *mars_tfm = NULL;
|
|||
int mars_digest_size = 0;
|
||||
EXPORT_SYMBOL_GPL(mars_digest_size);
|
||||
|
||||
void mars_digest(void *digest, void *data, int len)
|
||||
void mars_digest(unsigned char *digest, void *data, int len)
|
||||
{
|
||||
struct hash_desc desc = {
|
||||
.tfm = mars_tfm,
|
||||
|
|
Loading…
Reference in New Issue