diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-21 13:15:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-21 13:15:19 +0200 |
commit | 5e80bde84bb7e7e09a0f2af1032de9d77b8f1b03 (patch) | |
tree | e49d894f718f70d02e05d8a1f2dd000a0203a8ee /lib | |
parent | 38440c64a7a5b354db0347a1957e2cabc79d7f36 (diff) | |
download | gnutls-5e80bde84bb7e7e09a0f2af1032de9d77b8f1b03.tar.gz |
Added casts to prevent compiler warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/atfork.c | 2 | ||||
-rw-r--r-- | lib/pubkey.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/atfork.c b/lib/atfork.c index 8ec81153ef..62e161e9dd 100644 --- a/lib/atfork.c +++ b/lib/atfork.c @@ -62,7 +62,7 @@ unsigned int _gnutls_get_forkid(void) int _gnutls_detect_fork(unsigned int forkid) { - if (getpid() == forkid) + if ((unsigned int)getpid() == forkid) return 0; return 1; } diff --git a/lib/pubkey.c b/lib/pubkey.c index 7b7a183fb7..f98734c85b 100644 --- a/lib/pubkey.c +++ b/lib/pubkey.c @@ -1806,7 +1806,8 @@ _pkcs1_rsa_verify_sig(const mac_entry_st * me, return GNUTLS_E_INVALID_REQUEST; } - ret = _gnutls_hash_fast(me->id, text->data, text->size, md); + ret = _gnutls_hash_fast((gnutls_digest_algorithm_t)me->id, + text->data, text->size, md); if (ret < 0) { gnutls_assert(); return ret; @@ -1881,7 +1882,8 @@ dsa_verify_data(gnutls_pk_algorithm_t pk, if (algo == NULL) algo = _gnutls_dsa_q_to_hash(pk, params, NULL); - ret = _gnutls_hash_fast(algo->id, data->data, data->size, _digest); + ret = _gnutls_hash_fast((gnutls_digest_algorithm_t)algo->id, + data->data, data->size, _digest); if (ret < 0) return gnutls_assert_val(ret); |