mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
remove warnings on Solaris.
git-svn-id: file:///svn/unbound/trunk@2735 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a9d248e7c9
commit
bbe6cb922a
2 changed files with 3 additions and 2 deletions
|
|
@ -78,6 +78,7 @@
|
|||
#include "util/module.h"
|
||||
#include "util/random.h"
|
||||
#include "util/tube.h"
|
||||
#include "util/net_help.h"
|
||||
#include <signal.h>
|
||||
|
||||
/** How many quit requests happened. */
|
||||
|
|
|
|||
|
|
@ -752,7 +752,7 @@ ub_crypto_lock_cb(int mode, int type, const char *ATTR_UNUSED(file),
|
|||
int ub_openssl_lock_init(void)
|
||||
{
|
||||
#ifdef OPENSSL_THREADS
|
||||
size_t i;
|
||||
int i;
|
||||
ub_openssl_locks = (lock_basic_t*)malloc(
|
||||
sizeof(lock_basic_t)*CRYPTO_num_locks());
|
||||
if(!ub_openssl_locks)
|
||||
|
|
@ -769,7 +769,7 @@ int ub_openssl_lock_init(void)
|
|||
void ub_openssl_lock_delete(void)
|
||||
{
|
||||
#ifdef OPENSSL_THREADS
|
||||
size_t i;
|
||||
int i;
|
||||
if(!ub_openssl_locks)
|
||||
return;
|
||||
for(i=0; i<CRYPTO_num_locks(); i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue