From: Marc Olivier Chouinard Date: Mon, 25 Apr 2011 19:53:54 +0000 (-0400) Subject: Fix regression to dns resolve in sofia. It will make sofia and compiler happy X-Git-Tag: v1.2-rc1~118^2~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc19d28310cf322eab23b93c5b6152c7390c4c25;p=thirdparty%2Ffreeswitch.git Fix regression to dns resolve in sofia. It will make sofia and compiler happy --- diff --git a/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c b/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c index d719a68b90..ceb7d0f601 100644 --- a/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c +++ b/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c @@ -3632,10 +3632,14 @@ sres_decode_msg(sres_resolver_t *res, * for the side effects in m */ for (i = 0; i < m->m_qdcount; i++) { char name[1024]; - //uint16_t qtype, qclass; + uint16_t qtype, qclass; m_get_domain(name, sizeof(name), m, 0); /* Query domain */ - //qtype = m_get_uint16(m); /* Query type */ - //qclass = m_get_uint16(m); /* Query class */ + qtype = m_get_uint16(m); /* Query type */ + qclass = m_get_uint16(m); /* Query class */ + if (qtype && qclass) { + /* XXX: never mind these useless check, this is done to make compiler happy about unused value */ + } + } if (m->m_error) {