Fix compilation warnings
authorMyhailo Danylenko <isbear@ukrpost.net>
Wed, 14 Nov 2012 16:04:52 +0200
changeset 628 1ac0534623ef
parent 627 7e2159294505
child 629 5ed754060736
Fix compilation warnings
loudmouth/lm-resolver.c
loudmouth/lm-ssl-openssl.c
--- a/loudmouth/lm-resolver.c	Tue Apr 24 14:02:14 2012 -0700
+++ b/loudmouth/lm-resolver.c	Wed Nov 14 16:04:52 2012 +0200
@@ -477,14 +477,13 @@
     /* Parse the answers */
     while (ancount-- > 0 && (len = dn_expand (srv, end, pos, name, 255)) >= 0) {
         /* Ignore the initial string */
-        uint16_t pref, weight, port;
+        uint16_t pref, port;
 
         g_assert (len >= 0);
         pos += len;
         /* Ignore type, ttl, class and dlen */
         pos += 10;
         GETSHORT (pref, pos);
-        GETSHORT (weight, pos);
         GETSHORT (port, pos);
 
         len = dn_expand (srv, end, pos, name, 255);
--- a/loudmouth/lm-ssl-openssl.c	Tue Apr 24 14:02:14 2012 -0700
+++ b/loudmouth/lm-ssl-openssl.c	Wed Nov 14 16:04:52 2012 +0200
@@ -41,7 +41,7 @@
 struct _LmSSL {
     LmSSLBase base;
 
-    SSL_METHOD *ssl_method;
+    const SSL_METHOD *ssl_method;
     SSL_CTX *ssl_ctx;
     SSL *ssl;
     /*BIO *bio;*/