[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-52-g435f1d27e

paul at claws-mail.org paul at claws-mail.org
Sat Jul 23 13:59:17 UTC 2022


The branch, gtk2 has been updated
       via  435f1d27ed82a6cc33d3ee5dedb5274dd7cd785c (commit)
      from  474a95e08928d100e3ea712ad44fe4cd69c7d2af (commit)

Summary of changes:
 src/common/socket.c                            | 7 +++----
 src/etpan/imap-thread.c                        | 2 ++
 src/etpan/nntp-thread.c                        | 7 ++++---
 src/plugins/libravatar/libravatar_federation.c | 2 ++
 4 files changed, 11 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 435f1d27ed82a6cc33d3ee5dedb5274dd7cd785c
Author: Paul <paul at claws-mail.org>
Date:   Sat Jul 23 13:42:02 2022 +0100

    fix some warnings when building with --disable-gnutls

diff --git a/src/common/socket.c b/src/common/socket.c
index 33dd65cd6..6e8bb745b 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1,6 +1,6 @@
 /*
- * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Claws Mail -- a GTK based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -129,14 +129,13 @@ static guint io_timeout = 60;
 
 static GList *sock_connect_data_list = NULL;
 
+#ifdef USE_GNUTLS
 static gboolean ssl_sock_prepare	(GSource	*source,
 					 gint		*timeout);
 static gboolean ssl_sock_check		(GSource	*source);
 static gboolean ssl_sock_dispatch	(GSource	*source,
 					 GSourceFunc	 callback,
 					 gpointer	 user_data);
-
-#ifdef USE_GNUTLS
 GSourceFuncs ssl_watch_funcs = {
 	ssl_sock_prepare,
 	ssl_sock_check,
diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c
index 0c4ad1dc2..c573f21b3 100644
--- a/src/etpan/imap-thread.c
+++ b/src/etpan/imap-thread.c
@@ -97,6 +97,7 @@ static int do_mailimap_socket_connect(mailimap * imap, const char * server,
 	return mailimap_connect(imap, stream);
 }
 
+#ifdef USE_GNUTLS
 static int do_mailimap_ssl_connect_with_callback(mailimap * imap, const char * server,
 	gushort port,
 	void (* callback)(struct mailstream_ssl_context * ssl_context, void * data),
@@ -142,6 +143,7 @@ static int do_mailimap_ssl_connect_with_callback(mailimap * imap, const char * s
 
 	return mailimap_connect(imap, stream);
 }
+#endif
 
 static gboolean thread_manager_event(GIOChannel * source,
     GIOCondition condition,
diff --git a/src/etpan/nntp-thread.c b/src/etpan/nntp-thread.c
index 5f5b31b59..76020ca66 100644
--- a/src/etpan/nntp-thread.c
+++ b/src/etpan/nntp-thread.c
@@ -1,6 +1,6 @@
 /*
- * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2005-2016 DINH Viet Hoa and the Claws Mail team
+ * Claws Mail -- a GTK based, lightweight, and fast e-mail client
+ * Copyright (C) 2005-2022 the Claws Mail team and DINH Viet Hoa
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -97,6 +97,7 @@ static int do_newsnntp_socket_connect(newsnntp * imap, const char * server,
 	return newsnntp_connect(imap, stream);
 }
 
+#ifdef USE_GNUTLS
 static int do_newsnntp_ssl_connect_with_callback(newsnntp * imap, const char * server,
 	gushort port,
 	void (* callback)(struct mailstream_ssl_context * ssl_context, void * data),
@@ -137,7 +138,7 @@ static int do_newsnntp_ssl_connect_with_callback(newsnntp * imap, const char * s
 
 	return newsnntp_connect(imap, stream);
 }
-
+#endif
 
 static void nntp_logger(int direction, const char * str, size_t size) 
 {
diff --git a/src/plugins/libravatar/libravatar_federation.c b/src/plugins/libravatar/libravatar_federation.c
index 01734605f..2c9c421a3 100644
--- a/src/plugins/libravatar/libravatar_federation.c
+++ b/src/plugins/libravatar/libravatar_federation.c
@@ -26,6 +26,7 @@
 
 #define MISSING "x"
 
+#if defined USE_GNUTLS
 static GHashTable *federated = NULL;
 
 /**
@@ -70,6 +71,7 @@ static void add_federated_url_for_domain(const gchar *url, const gchar *domain)
 	debug_print("new cached avatar url for domain %s: %s\n", domain, url);
 	g_hash_table_insert(federated, g_strdup(domain), g_strdup(url)); 
 }
+#endif
 
 /**
  * Retrieves the federated URL for a given email address.

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list