code cleanup
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 27 Jul 2001 20:35:03 +0000 (20:35 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 27 Jul 2001 20:35:03 +0000 (20:35 +0000)
ChangeLog.claws
src/filtering.c

index 1c5db7339a50593b7267df18361fa60536f3a936..d0598956eb6312f2d98cbee5ce723574931ac393 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-27 [christoph]
+
+       * src/filtering.c
+               code cleanup (MIN / MAX warning, needed casting)
+
 2001-07-27 [alfons]
 
        * procheader.c
@@ -21,6 +26,7 @@
        * src/send.c
                SMTP over SSL (untested, feedback requested)
                IMAP over SSL
+
        * src/ssl.c
                code cleanup
 
index d5ae31d86773ae50b78208501d8a9196a9723b59..7b3e39ab6f270a9f3504fc832b1b80d628263c17 100644 (file)
@@ -33,6 +33,7 @@
  * right after a call to folder_item_add_msg(). 
  */ 
 
+#include "defs.h"
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
@@ -41,7 +42,6 @@
 #include <stdio.h>
 #include "intl.h"
 #include "utils.h"
-#include "defs.h"
 #include "procheader.h"
 #include "matcher.h"
 #include "filtering.h"
@@ -287,7 +287,7 @@ static gchar * filteringaction_execute_command(gchar * cmd, MsgInfo * info)
                                break;
                        case 'F': /* file */
                                if (MSG_IS_FILTERING(info->flags))
-                                       filename = g_strdup(info->folder);
+                                       filename = g_strdup((gchar *)info->folder);
                                else
                                        filename = folder_item_fetch_msg(info->folder, info->msgnum);
                                
@@ -1081,7 +1081,7 @@ void filter_incoming_message(FolderItem *default_folder, const gchar *file_name,
        /* let matcher know that this is a message that has no
         * valid body data yet. */
        MSG_SET_TMP_FLAGS(msginfo->flags, MSG_FILTERING);
-       msginfo->folder = g_strdup(file_name);
+       msginfo->folder = (FolderItem *) g_strdup(file_name); /* actually storing a pointer to a string */
        msginfo->msgnum = 0;
 
        filter_incoming_msginfo(default_folder, msginfo, folder_table);