[Commits] [SCM] claws branch, master, updated. 3.18.0-99-gaf4a2b24c

jonathan at claws-mail.org jonathan at claws-mail.org
Sat Sep 11 03:34:00 CEST 2021


The branch, master has been updated
       via  af4a2b24ca0c91a1c3f61e6fb74f2a7126aff20d (commit)
       via  ba258d36906b8fb05c6cbc36f88d155ca0091bd4 (commit)
      from  05d668eaede5cbe8f720c3125dbe1483a6ad180e (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c | 4 ++--
 src/plugins/fancy/fancy_viewer.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit af4a2b24ca0c91a1c3f61e6fb74f2a7126aff20d
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Thu Sep 9 23:51:15 2021 -0700

    Add missing const qualifier
    
    Fix warning: assignment discards ‘const’ qualifier from pointer target type

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 3454f25e1..9bc43459f 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -701,7 +701,7 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
 	pthread_t curljob;
 	gint result;
 #endif
-	const gchar *link = (const gchar *)viewer->cur_link;
+	const gchar *link = viewer->cur_link;
 	gchar *filename = g_utf8_strchr(link, -1, g_utf8_get_char("/"));
 	filename = g_strconcat(g_get_home_dir(), filename, NULL);
 	gchar *fname = filesel_select_file_save(_("Save as"), filename);
diff --git a/src/plugins/fancy/fancy_viewer.h b/src/plugins/fancy/fancy_viewer.h
index c22ca4014..74d811e55 100644
--- a/src/plugins/fancy/fancy_viewer.h
+++ b/src/plugins/fancy/fancy_viewer.h
@@ -110,7 +110,7 @@ struct _FancyViewer
 	const gchar       *curlfile;
 	FILE              *stream;
 
-	gchar             *cur_link;
+	const gchar       *cur_link;
 	gchar             *filename;
 	MimeInfo          *to_load;
 	gulong            doc_handle;

commit ba258d36906b8fb05c6cbc36f88d155ca0091bd4
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Thu Sep 9 23:47:02 2021 -0700

    Minor cleanup

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 937b66ab0..3454f25e1 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -421,7 +421,7 @@ navigation_policy_cb (WebKitWebView             *web_view,
 		webkit_web_policy_decision_ignore(policy_decision);
 	}
 
-	return true;
+	return TRUE;
 }
 
 static void resource_request_starting_cb(WebKitWebView		*view,

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list