diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src/gg.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/gg.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index fd0aea0f03..99b85fb547 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -124,7 +124,7 @@ void crc_gentable(void) // Calculate the crc value
unsigned long crc_get(char *mem)
{
- register unsigned long crc = 0xFFFFFFFF;
+ unsigned long crc = 0xFFFFFFFF;
while (mem && *mem)
crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_table[(crc ^ *(mem++)) & 0xFF];
@@ -164,10 +164,8 @@ void GaduProto::cleanuplastplugin(uint32_t version) // force SSL and keepalive; overwrite old server list;
if (version < PLUGIN_MAKE_VERSION(0, 11, 0, 4)) {
- setWString("ServerHosts", GG_KEYDEF_SERVERHOSTS);
- m_useManualHosts = 1;
- m_useSslConnection = 1;
- m_keepConnectionAlive = 1;
+ delSetting("ServerHosts");
+ m_useManualHosts = false;
}
}
|