# HG changeset patch # User Myhailo Danylenko # Date 1352901892 -7200 # Node ID 1ac0534623efadddc7133a52989e433bb493a1d7 # Parent 7e2159294505b5af31e553fc67a98d4909191037 Fix compilation warnings diff -r 7e2159294505 -r 1ac0534623ef loudmouth/lm-resolver.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); diff -r 7e2159294505 -r 1ac0534623ef loudmouth/lm-ssl-openssl.c --- 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;*/