Fix complication errors
This commit is contained in:
parent
e5f3069d84
commit
4e1b3171fb
2 changed files with 4 additions and 4 deletions
|
@ -11,8 +11,8 @@ int mh_multihash_length(const unsigned char *multihash, size_t len);
|
|||
|
||||
// gives access to raw digest inside multihash buffer
|
||||
// returns 0 or negative error
|
||||
int mh_multihash_digest(const unsigned char *multihash, size_t len,
|
||||
const unsigned char **digest, size_t *digest_len);
|
||||
int mh_multihash_digest(unsigned char *multihash, size_t len,
|
||||
unsigned char **digest, size_t *digest_len);
|
||||
|
||||
// returns length in bytes of buffer needed to store multihash
|
||||
// with given hashcode and with given digest length
|
||||
|
|
|
@ -42,7 +42,7 @@ static int check_multihash(const unsigned char mh[], size_t len) {
|
|||
|
||||
// returns hash code or error (which is < 0)
|
||||
int mh_multihash_hash(const unsigned char *mh, size_t len) {
|
||||
int err = check_multihash(multihash, len);
|
||||
int err = check_multihash(mh, len);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -52,7 +52,7 @@ int mh_multihash_hash(const unsigned char *mh, size_t len) {
|
|||
|
||||
// returns length of multihash or error (which is < 0)
|
||||
int mh_multihash_length(const unsigned char *mh, size_t len) {
|
||||
int err = check_multihash(multihash, len);
|
||||
int err = check_multihash(mh, len);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
Loading…
Reference in a new issue