mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Fix reference to old lock functions
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
#include "FTL.h"
|
||||
#include "shmem.h"
|
||||
|
||||
// Resolve new client and upstream server host names
|
||||
// once every minute
|
||||
@@ -84,12 +85,12 @@ void resolveClients(bool onlynew)
|
||||
if(onlynew && !clients[clientID].new)
|
||||
continue;
|
||||
|
||||
enable_thread_lock();
|
||||
lock_shm();
|
||||
|
||||
clients[clientID].namepos = addstr(resolveHostname(getstr(clients[clientID].ippos)));
|
||||
clients[clientID].new = false;
|
||||
|
||||
disable_thread_lock();
|
||||
unlock_shm();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,12 +108,12 @@ void resolveForwardDestinations(bool onlynew)
|
||||
if(onlynew && !forwarded[forwardID].new)
|
||||
continue;
|
||||
|
||||
enable_thread_lock();
|
||||
lock_shm();
|
||||
|
||||
forwarded[forwardID].namepos = addstr(resolveHostname(getstr(forwarded[forwardID].ippos)));
|
||||
forwarded[forwardID].new = false;
|
||||
|
||||
disable_thread_lock();
|
||||
unlock_shm();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user