talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7e344914c711eb277022e9965d1834229d6b13e9
parent 0a692203078cd322d6ab2f96917233209a13a59c
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 18 Aug 2016 15:54:16 +0200

Few miscellaneous fixes for RSSyl.

Mostly for compiler warnings on win64.

Diffstat:
Msrc/plugins/rssyl/libfeed/feed.c | 4++--
Msrc/plugins/rssyl/libfeed/feed.h | 2+-
Msrc/plugins/rssyl/libfeed/parser.c | 2+-
Msrc/plugins/rssyl/rssyl_subscribe.c | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/plugins/rssyl/libfeed/feed.c b/src/plugins/rssyl/libfeed/feed.c @@ -300,7 +300,7 @@ guint feed_update(Feed *feed, time_t last_update) if( last_update != -1 ) { curl_easy_setopt(eh, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE); - curl_easy_setopt(eh, CURLOPT_TIMEVALUE, last_update); + curl_easy_setopt(eh, CURLOPT_TIMEVALUE, (long)last_update); } #if LIBCURL_VERSION_NUM >= 0x070a00 @@ -430,7 +430,7 @@ gchar *feed_get_cacert_file(Feed *feed) return feed->cacert_file; } -void feed_set_cacert_file(Feed *feed, gchar *path) +void feed_set_cacert_file(Feed *feed, const gchar *path) { g_return_if_fail(feed != NULL); diff --git a/src/plugins/rssyl/libfeed/feed.h b/src/plugins/rssyl/libfeed/feed.h @@ -118,7 +118,7 @@ gboolean feed_get_ssl_verify_peer(Feed *feed); void feed_set_ssl_verify_peer(Feed *feed, gboolean ssl_verify_peer); gchar *feed_get_cacert_file(Feed *feed); -void feed_set_cacert_file(Feed *feed, gchar *path); +void feed_set_cacert_file(Feed *feed, const gchar *path); gint feed_n_items(Feed *feed); FeedItem *feed_nth_item(Feed *feed, guint n); diff --git a/src/plugins/rssyl/libfeed/parser.c b/src/plugins/rssyl/libfeed/parser.c @@ -206,7 +206,7 @@ static gint giconv_utf32_char(GIConv cd, const gchar *inbuf, size_t insize, size_t outsize; guchar outbuf[CHARSIZEUTF32]; gchar *outbufp; - gint r, errno; + gint r; outsize = sizeof(outbuf); outbufp = (gchar *)outbuf; diff --git a/src/plugins/rssyl/rssyl_subscribe.c b/src/plugins/rssyl/rssyl_subscribe.c @@ -132,7 +132,7 @@ gboolean rssyl_subscribe(FolderItem *parent, const gchar *url, /* Windows does not allow its filenames to start or end with a dot, * or to end with a space. */ if (tmpname2[0] == '.') - tmpname2[0] = "_"; + tmpname2[0] = '_'; if (tmpname2[strlen(tmpname2) - 1] == '.') tmpname2[strlen(tmpname2) - 1] = '_'; if (tmpname2[strlen(tmpname2) - 1] == ' ')