aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppSrvInfo.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-09-07 08:00:32 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-09-07 08:00:32 +0000
commitd48769f744833e6dc3e0c3a25ab69a95087215f5 (patch)
tree4853abdd32309cd86b6532855d2b4730ac6ca037 /src/QXmppSrvInfo.cpp
parentc61694402a270e0c3c08cc9a90bf65b9bcfa7b00 (diff)
downloadqxmpp-d48769f744833e6dc3e0c3a25ab69a95087215f5.tar.gz
fix some compiler warnings
Diffstat (limited to 'src/QXmppSrvInfo.cpp')
-rw-r--r--src/QXmppSrvInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/QXmppSrvInfo.cpp b/src/QXmppSrvInfo.cpp
index 4495ebbc..25ec2ad7 100644
--- a/src/QXmppSrvInfo.cpp
+++ b/src/QXmppSrvInfo.cpp
@@ -489,7 +489,7 @@ QXmppSrvInfo QXmppSrvInfo::fromName(const QString &dname)
answerIndex = 0;
while ((p < response + responseLength) && (answerIndex < answerCount))
{
- int type, klass, ttl, size;
+ int type, size;
status = local_dn_expand(response, response + responseLength, p, host, sizeof(host));
if (status < 0)
{
@@ -501,9 +501,9 @@ QXmppSrvInfo QXmppSrvInfo::fromName(const QString &dname)
p += status;
type = (p[0] << 8) | p[1];
p += 2;
- klass = (p[0] << 8) | p[1];
+ //klass = (p[0] << 8) | p[1];
p += 2;
- ttl = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
+ //ttl = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
p += 4;
size = (p[0] << 8) | p[1];
p += 2;