[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)

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/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