]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Aug 2013 14:20:10 +0000 (17:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Aug 2013 14:20:10 +0000 (17:20 +0300)
src/director/director-connection.c
src/lib-ssl-iostream/iostream-openssl-context.c
src/login-common/ssl-proxy-openssl.c

index 0f396d00c33ccfdf6a8e24f785f1cea3d34462fc..d69e82cfa0b9d1061b0236b66e52734d20ece063 100644 (file)
@@ -1175,7 +1175,7 @@ static bool director_connection_sync(struct director_connection *conn,
        }
 
        if ((host == NULL || !host->self) &&
-           dir->self_host->last_sync_timestamp != ioloop_time)
+           (time_t)dir->self_host->last_sync_timestamp != ioloop_time)
                (void)director_resend_sync(dir);
        return TRUE;
 }
index 81133305b457a1e27515087492e0d697237be0b0..512ee98763491dfb67e69918e031bf12da21791a 100644 (file)
@@ -433,8 +433,8 @@ ssl_proxy_ctx_get_pkey_ec_curve_name(const struct ssl_iostream_settings *set,
 
 static int
 ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx,
-                               const struct ssl_iostream_settings *set,
-                               const char **error_r)
+                               const struct ssl_iostream_settings *set ATTR_UNUSED,
+                               const char **error_r ATTR_UNUSED)
 {
 #if !defined(OPENSSL_NO_ECDH) && OPENSSL_VERSION_NUMBER >= 0x10000000L && OPENSSL_VERSION_NUMBER < 0x10002000L
        EC_KEY *ecdh;
index 07ef78d8c57754175b26a5afadb4798e8703a40a..7939b918f3beabfcb98ac418564eee1cf23f1252 100644 (file)
@@ -121,7 +121,9 @@ static void ssl_server_context_deinit(struct ssl_server_context **_ctx);
 
 static void ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx,
                                             const struct master_service_ssl_settings *set);
+#if !defined(OPENSSL_NO_ECDH) && OPENSSL_VERSION_NUMBER >= 0x10000000L && OPENSSL_VERSION_NUMBER < 0x10002000L
 static int ssl_proxy_ctx_get_pkey_ec_curve_name(const struct master_service_ssl_settings *set);
+#endif
 
 static unsigned int ssl_server_context_hash(const struct ssl_server_context *ctx)
 {
@@ -1013,7 +1015,7 @@ ssl_proxy_ctx_init(SSL_CTX *ssl_ctx, const struct master_service_ssl_settings *s
 
 static void
 ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx,
-                                const struct master_service_ssl_settings *set)
+       const struct master_service_ssl_settings *set ATTR_UNUSED)
 {
 #if !defined(OPENSSL_NO_ECDH) && OPENSSL_VERSION_NUMBER >= 0x10000000L && OPENSSL_VERSION_NUMBER < 0x10002000L
        EC_KEY *ecdh;