[Users] Compiling error

Michael Rasmussen mir at miras.org
Tue Jul 1 20:05:11 CEST 2014

On Tue, 1 Jul 2014 09:38:59 +0200
Andrej Kacian <andrej at kacian.sk> wrote:

> Sure, I don't get any error either, but the errno variable doesn't need
> to be declared there. If its removal will fix something without
> breaking anything elsewhere... :)
This patch will fix it:
diff --git a/src/plugins/rssyl/rssyl_add_item.c
b/src/plugins/rssyl/rssyl_add_item.c index 1dc3e78..1878e1c 100644
--- a/src/plugins/rssyl/rssyl_add_item.c
+++ b/src/plugins/rssyl/rssyl_add_item.c
@@ -28,6 +28,7 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <string.h>
+#include <errno.h>
 /* Claws Mail includes */
 #include <codeconv.h>
@@ -269,7 +270,7 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem
*feed_item) MsgPermFlags oldperm_flags = 0;
        MsgInfo *msginfo;
        FILE *f;
-       gint fd, d, dif, errno = 0;
+       gint fd, d, dif;
        time_t tmpd;
        gchar *meta_charset = NULL;
        gchar *baseurl = NULL;

> P.S. No need to reply to me directly, I read the mailing list.
I know. It was sent from my phone which only allows reply to sender or
reply to all. (K9-mail that is)

Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
mir <at> datanom <dot> net
mir <at> miras <dot> org
/usr/games/fortune -es says:
A countryman between two lawyers is like a fish between two cats.
		-- Ben Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20140701/041c2e76/attachment.sig>

More information about the Users mailing list