summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
commit53fe3e46177d17b4941610de19f5cc6210700cb4 (patch)
treeb67a6bc208dad141f9db14035cd7e42ff2a51872 /protocols/EmLanProto/src
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'protocols/EmLanProto/src')
-rw-r--r--protocols/EmLanProto/src/mlan.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp
index 3091a274ed..6459ebfc6c 100644
--- a/protocols/EmLanProto/src/mlan.cpp
+++ b/protocols/EmLanProto/src/mlan.cpp
@@ -744,8 +744,8 @@ void CMLan::ParsePacket(TPacket& pak, u_char* buf, int len)
void CMLan::LoadSettings()
{
- m_RequiredIp = db_get_dw(NULL, PROTONAME, "ipaddr", 0);
- m_UseHostName = db_get_b(NULL, PROTONAME, "UseHostName", 1) != 0;
+ m_RequiredIp = db_get_dw(0, PROTONAME, "ipaddr", 0);
+ m_UseHostName = db_get_b(0, PROTONAME, "UseHostName", 1) != 0;
if (m_UseHostName) {
m_nameLen = MAX_HOSTNAME_LEN;
GetComputerName(m_name, &m_nameLen);
@@ -773,9 +773,9 @@ void CMLan::LoadSettings()
void CMLan::SaveSettings()
{
- db_set_dw(NULL, PROTONAME, "ipaddr", m_RequiredIp);
- db_set_b(NULL, PROTONAME, "UseHostName", m_UseHostName);
- db_set_ws(NULL, PROTONAME, "Nick", m_name);
+ db_set_dw(0, PROTONAME, "ipaddr", m_RequiredIp);
+ db_set_b(0, PROTONAME, "UseHostName", m_UseHostName);
+ db_set_ws(0, PROTONAME, "Nick", m_name);
}
//////////////////////////////////////////////////////////////////////////