mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed warning
This commit is contained in:
parent
d1037ee9fd
commit
38a6b3e69f
1 changed files with 3 additions and 3 deletions
|
@ -4551,11 +4551,11 @@ public:
|
|||
private:
|
||||
static void locking_callback(int mode, int type, const char * /*file*/,
|
||||
int /*line*/) {
|
||||
auto &locks = *openSSL_locks_;
|
||||
auto &lk = (*openSSL_locks_)[static_cast<size_t>(type)];
|
||||
if (mode & CRYPTO_LOCK) {
|
||||
locks[type].lock();
|
||||
lk.lock();
|
||||
} else {
|
||||
locks[type].unlock();
|
||||
lk.unlock();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue