hashe array type changed to avoid signedness difference warning.
This commit is contained in:
parent
0ffe73ae28
commit
1b5b7c7cba
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ void *kademlia_thread (void *ptr)
|
||||||
Since peers expire announced data after 30 minutes, it's a good
|
Since peers expire announced data after 30 minutes, it's a good
|
||||||
idea to reannounce every 28 minutes or so. */
|
idea to reannounce every 28 minutes or so. */
|
||||||
if(searching > 0) {
|
if(searching > 0) {
|
||||||
char h[sizeof hash];
|
unsigned char h[sizeof hash];
|
||||||
int i;
|
int i;
|
||||||
for (i = 0 ; i < sizeof hash ; i++) {
|
for (i = 0 ; i < sizeof hash ; i++) {
|
||||||
h[i] = hash[i]; // Copy hash array to new array so can call
|
h[i] = hash[i]; // Copy hash array to new array so can call
|
||||||
|
@ -215,7 +215,7 @@ void dht_hash (void *hash_return, int hash_size,
|
||||||
const void *v3, int len3)
|
const void *v3, int len3)
|
||||||
{
|
{
|
||||||
int len = len1 + len2 + len3;
|
int len = len1 + len2 + len3;
|
||||||
char *in, out[32];
|
unsigned char *in, out[32];
|
||||||
|
|
||||||
if (!hash_return || hash_size==0 || len==0) {
|
if (!hash_return || hash_size==0 || len==0) {
|
||||||
return; // invalid param.
|
return; // invalid param.
|
||||||
|
|
Loading…
Reference in a new issue