fix signedness in crypto hash display

This commit is contained in:
Thomas Schoebel-Theuer 2011-09-29 10:06:14 +02:00 committed by Thomas Schoebel-Theuer
parent 3715fdf93d
commit c8e7d8b59d
3 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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);
/////////////////////////////////////////////////////////////////////////

View File

@ -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,