2005-09-14 [paul] 1.9.14cvs26
authorPaul Mangan <paul@claws-mail.org>
Wed, 14 Sep 2005 08:11:20 +0000 (08:11 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 14 Sep 2005 08:11:20 +0000 (08:11 +0000)
* src/addrcache.c
* src/codeconv.h
* src/folder.h
* src/mainwindow.h
* src/mh.c
* src/mimeview.h
* src/partial_download.c
* src/pop.c
* src/prefs_account.c
* src/prefs_account.h
* src/prefs_actions.c
* src/prefs_customheader.c
* src/prefs_display_header.c
* src/prefs_filtering_action.c
* src/prefs_matcher.c
* src/prefs_toolbar.c
* src/privacy.h
* src/procmime.c
* src/procmime.h
* src/procmsg.h
* src/textview.c
* src/undo.h
* src/common/plugin.c
* src/common/session.h
* src/common/socket.c
* src/common/socket.h
* src/common/template.c
* src/gtk/gtkaspell.c
* src/gtk/quicksearch.h
* src/plugins/pgpcore/passphrase.c
* src/plugins/pgpcore/prefs_gpg.h
* src/plugins/pgpcore/select-keys.c
* src/plugins/pgpcore/select-keys.h
* src/plugins/pgpcore/sgpgme.c
* src/plugins/pgpinline/pgpinline.c
* src/plugins/pgpmime/pgpmime.c
* src/plugins/trayicon/trayicon.c
fix compilation warnings
Patch by Daniel Gustafson

40 files changed:
ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/addrcache.c
src/codeconv.h
src/common/plugin.c
src/common/session.h
src/common/socket.c
src/common/socket.h
src/common/template.c
src/folder.h
src/gtk/gtkaspell.c
src/gtk/quicksearch.h
src/mainwindow.h
src/mh.c
src/mimeview.h
src/partial_download.c
src/plugins/pgpcore/passphrase.c
src/plugins/pgpcore/prefs_gpg.h
src/plugins/pgpcore/select-keys.c
src/plugins/pgpcore/select-keys.h
src/plugins/pgpcore/sgpgme.c
src/plugins/pgpinline/pgpinline.c
src/plugins/pgpmime/pgpmime.c
src/plugins/trayicon/trayicon.c
src/pop.c
src/prefs_account.c
src/prefs_account.h
src/prefs_actions.c
src/prefs_customheader.c
src/prefs_display_header.c
src/prefs_filtering_action.c
src/prefs_matcher.c
src/prefs_toolbar.c
src/privacy.h
src/procmime.c
src/procmime.h
src/procmsg.h
src/textview.c
src/undo.h

index 1e3e1d9..21977b1 100644 (file)
@@ -1,3 +1,45 @@
+2005-09-14 [paul]      1.9.14cvs26
+
+       * src/addrcache.c
+       * src/codeconv.h
+       * src/folder.h
+       * src/mainwindow.h
+       * src/mh.c
+       * src/mimeview.h
+       * src/partial_download.c
+       * src/pop.c
+       * src/prefs_account.c
+       * src/prefs_account.h
+       * src/prefs_actions.c
+       * src/prefs_customheader.c
+       * src/prefs_display_header.c
+       * src/prefs_filtering_action.c
+       * src/prefs_matcher.c
+       * src/prefs_toolbar.c
+       * src/privacy.h
+       * src/procmime.c
+       * src/procmime.h
+       * src/procmsg.h
+       * src/textview.c
+       * src/undo.h
+       * src/common/plugin.c
+       * src/common/session.h
+       * src/common/socket.c
+       * src/common/socket.h
+       * src/common/template.c
+       * src/gtk/gtkaspell.c
+       * src/gtk/quicksearch.h
+       * src/plugins/pgpcore/passphrase.c
+       * src/plugins/pgpcore/prefs_gpg.h
+       * src/plugins/pgpcore/select-keys.c
+       * src/plugins/pgpcore/select-keys.h
+       * src/plugins/pgpcore/sgpgme.c
+       * src/plugins/pgpinline/pgpinline.c
+       * src/plugins/pgpmime/pgpmime.c
+       * src/plugins/trayicon/trayicon.c
+               fix compilation warnings
+               Patch by Daniel Gustafson
+
 2005-09-14 [paul]      1.9.14cvs25
 
        * src/addressbook.c
index 7490488..a35732f 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.167 -r 1.382.2.168 src/compose.c;  cvs diff -u -r 1.3.2.25 -r 1.3.2.26 src/prefs_themes.c;  cvs diff -u -r 1.49.2.58 -r 1.49.2.59 src/procmime.c;  cvs diff -u -r 1.150.2.43 -r 1.150.2.44 src/procmsg.c;  cvs diff -u -r 1.9.2.21 -r 1.9.2.22 src/gtk/gtkaspell.c;  ) > 1.9.14cvs23.patchset
 ( cvs diff -u -r 1.9.2.22 -r 1.9.2.23 src/gtk/gtkaspell.c;  ) > 1.9.14cvs24.patchset
 ( cvs diff -u -r 1.60.2.28 -r 1.60.2.29 src/addressbook.c;  ) > 1.9.14cvs25.patchset
+( cvs diff -u -r 1.15.2.4 -r 1.15.2.5 src/addrcache.c;  cvs diff -u -r 1.15.2.9 -r 1.15.2.10 src/codeconv.h;  cvs diff -u -r 1.87.2.17 -r 1.87.2.18 src/folder.h;  cvs diff -u -r 1.39.2.6 -r 1.39.2.7 src/mainwindow.h;  cvs diff -u -r 1.79.2.17 -r 1.79.2.18 src/mh.c;  cvs diff -u -r 1.20.2.3 -r 1.20.2.4 src/mimeview.h;  cvs diff -u -r 1.1.2.7 -r 1.1.2.8 src/partial_download.c;  cvs diff -u -r 1.56.2.38 -r 1.56.2.39 src/pop.c;  cvs diff -u -r 1.105.2.32 -r 1.105.2.33 src/prefs_account.c;  cvs diff -u -r 1.49.2.13 -r 1.49.2.14 src/prefs_account.h;  cvs diff -u -r 1.60.2.20 -r 1.60.2.21 src/prefs_actions.c;  cvs diff -u -r 1.16.2.12 -r 1.16.2.13 src/prefs_customheader.c;  cvs diff -u -r 1.16.2.12 -r 1.16.2.13 src/prefs_display_header.c;  cvs diff -u -r 1.1.4.16 -r 1.1.4.17 src/prefs_filtering_action.c;  cvs diff -u -r 1.43.2.21 -r 1.43.2.22 src/prefs_matcher.c;  cvs diff -u -r 1.30.2.15 -r 1.30.2.16 src/prefs_toolbar.c;  cvs diff -u -r 1.10.2.3 -r 1.10.2.4 src/privacy.h;  cvs diff -u -r 1.49.2.59 -r 1.49.2.60 src/procmime.c;  cvs diff -u -r 1.17.2.10 -r 1.17.2.11 src/procmime.h;  cvs diff -u -r 1.60.2.16 -r 1.60.2.17 src/procmsg.h;  cvs diff -u -r 1.96.2.74 -r 1.96.2.75 src/textview.c;  cvs diff -u -r 1.5.14.1 -r 1.5.14.2 src/undo.h;  cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/common/plugin.c;  cvs diff -u -r 1.8.2.4 -r 1.8.2.5 src/common/session.h;  cvs diff -u -r 1.13.2.14 -r 1.13.2.15 src/common/socket.c;  cvs diff -u -r 1.13.2.2 -r 1.13.2.3 src/common/socket.h;  cvs diff -u -r 1.2.4.12 -r 1.2.4.13 src/common/template.c;  cvs diff -u -r 1.9.2.23 -r 1.9.2.24 src/gtk/gtkaspell.c;  cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/gtk/quicksearch.h;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpcore/passphrase.c;  cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/plugins/pgpcore/prefs_gpg.h;  cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpcore/select-keys.c;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpcore/select-keys.h;  cvs diff -u -r 1.1.2.6 -r 1.1.2.7 src/plugins/pgpcore/sgpgme.c;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/plugins/pgpinline/pgpinline.c;  cvs diff -u -r 1.1.2.22 -r 1.1.2.23 src/plugins/pgpmime/pgpmime.c;  cvs diff -u -r 1.14.2.18 -r 1.14.2.19 src/plugins/trayicon/trayicon.c;  ) > 1.9.14cvs26.patchset
index 108f9ec..dbf5d40 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=14
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=25
+EXTRA_VERSION=26
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 33a675a..45d709b 100644 (file)
@@ -342,7 +342,7 @@ void addrcache_print( AddressCache *cache, FILE *stream ) {
        fprintf( stream, "cache id : %s\n",  cache->cacheID );
        fprintf( stream, "next id  : %d\n",  cache->nextID );
        fprintf( stream, "name     : %s\n",  cache->name );
-       fprintf( stream, "mod time : %ld\n", cache->modifyTime );
+       fprintf( stream, "mod time : %ld\n", (long int)cache->modifyTime );
        fprintf( stream, "modified : %s\n",  cache->modified ? "yes" : "no" );
        fprintf( stream, "data read: %s\n",  cache->dataRead ? "yes" : "no" );
 }
index 86efe90..0eb547a 100644 (file)
@@ -170,7 +170,7 @@ struct _CodeConverter
 #define C_INTERNAL             C_UTF_8
 #define CS_INTERNAL            CS_UTF_8
 
-//void conv_mb_alnum(gchar *str);
+/* void conv_mb_alnum(gchar *str); */
 
 CharSet conv_guess_ja_encoding(const gchar *str);
 
index 65bcf99..633bb24 100644 (file)
@@ -197,11 +197,11 @@ Plugin *plugin_load(const gchar *filename, gchar **error)
        g_return_val_if_fail(filename != NULL, NULL);
        g_return_val_if_fail(error != NULL, NULL);
 
-        /* check duplicate plugin path name */
-        if (plugin_is_loaded(filename)) {
-                *error = g_strdup(_("Plugin already loaded"));
-                return NULL;                
-        }                               
+       /* check duplicate plugin path name */
+       if (plugin_is_loaded(filename)) {
+               *error = g_strdup(_("Plugin already loaded"));
+               return NULL;                
+       }                               
        
        if (plugin_load_deps(filename, error) < 0)
                return NULL;
@@ -220,8 +220,8 @@ Plugin *plugin_load(const gchar *filename, gchar **error)
 
        if (!g_module_symbol(plugin->module, "plugin_name", &plugin_name) ||
            !g_module_symbol(plugin->module, "plugin_desc", &plugin_desc) ||
-           !g_module_symbol(plugin->module, "plugin_type", (gpointer *) &plugin_type) ||
-           !g_module_symbol(plugin->module, "plugin_init", (gpointer *) &plugin_init)) {
+           !g_module_symbol(plugin->module, "plugin_type", (gpointer)&plugin_type) ||
+           !g_module_symbol(plugin->module, "plugin_init", (gpointer)&plugin_init)) {
                *error = g_strdup(g_module_error());
                g_module_close(plugin->module);
                g_free(plugin);
@@ -259,7 +259,7 @@ void plugin_unload(Plugin *plugin)
 
        plugin_unload_rdeps(plugin);
 
-       if (g_module_symbol(plugin->module, "plugin_done", (gpointer *)&plugin_done)) {
+       if (g_module_symbol(plugin->module, "plugin_done", (gpointer&plugin_done)) {
                plugin_done();
        }
 
index 4a6517c..ed2d328 100644 (file)
@@ -42,7 +42,7 @@ typedef enum {
        SESSION_IMAP,
        SESSION_NEWS,
        SESSION_SMTP,
-       SESSION_POP3,
+       SESSION_POP3
 } SessionType;
 
 typedef enum {
index 4d56e5c..918ab18 100644 (file)
@@ -671,7 +671,6 @@ SockInfo *sock_connect(const gchar *hostname, gushort port)
 #else
        gint sock;
 #endif
-       SockInfo *sockinfo;
 
 #ifdef INET6
        if ((sock = sock_connect_by_getaddrinfo(hostname, port)) < 0)
index d7ffa22..75136fd 100644 (file)
@@ -42,7 +42,7 @@ typedef enum
        CONN_ESTABLISHED,
        CONN_LOOKUPFAILED,
        CONN_FAILED,
-       CONN_DISCONNECTED,
+       CONN_DISCONNECTED
 } ConnectionState;
 
 typedef gint (*SockConnectFunc)                (SockInfo       *sock,
index 7677f76..bbacc49 100644 (file)
@@ -109,15 +109,16 @@ void template_clear_config(GSList *tmpl_list)
        g_slist_free(tmpl_list);
 }
 
-int tmpl_compare(Template *tmpl1, Template *tmpl2)
+gint tmpl_compare(gconstpointer tmpl1, gconstpointer tmpl2)
 {
-       if (tmpl1 == NULL || tmpl2 == NULL)
+       if ((Template *)tmpl1 == NULL || (Template *)tmpl2 == NULL)
                return 0;
 
-       if (tmpl1->name == NULL || tmpl2->name == NULL)
+       if (((Template *)tmpl1)->name == NULL || ((Template *)tmpl2)->name == NULL)
                return 0;
 
-       return strcmp(tmpl1->name, tmpl2->name);
+       return (gint) strcmp((char *)((Template *)tmpl1)->name, 
+                            (char *)((Template *)tmpl2)->name);
 }
 
 GSList *template_read_config(void)
index 297423c..dcd7bfc 100644 (file)
@@ -95,7 +95,7 @@ typedef enum
        F_MOVE_FAILED_DEST_IS_PARENT = -1,
        F_MOVE_FAILED_DEST_IS_CHILD = -2,
        F_MOVE_FAILED_DEST_OUTSIDE_MAILBOX = -3,
-       F_MOVE_FAILED = -4,
+       F_MOVE_FAILED = -4
 } FolderItemMoveResult;
 
 typedef enum
@@ -104,7 +104,7 @@ typedef enum
        FOLDER_REMOVE_FOLDER            = 1 << 1,
        FOLDER_TREE_CHANGED             = 1 << 2,
        FOLDER_ADD_FOLDERITEM           = 1 << 3,
-       FOLDER_REMOVE_FOLDERITEM        = 1 << 4,
+       FOLDER_REMOVE_FOLDERITEM        = 1 << 4
 } FolderUpdateFlags;
 
 typedef enum
@@ -113,7 +113,7 @@ typedef enum
        F_ITEM_UPDATE_CONTENT = 1 << 1,
        F_ITEM_UPDATE_ADDMSG = 1 << 2,
        F_ITEM_UPDATE_REMOVEMSG = 1 << 3,
-       F_ITEM_UPDATE_NAME = 1 << 4,
+       F_ITEM_UPDATE_NAME = 1 << 4
 } FolderItemUpdateFlags;
 
 typedef void (*FolderUIFunc)           (Folder         *folder,
index 7144718..285059d 100644 (file)
@@ -437,19 +437,19 @@ GtkAspell *gtkaspell_new(const gchar *dictionary_path,
        return gtkaspell;
 }
 
-void gtkaspell_delete(GtkAspell * gtkaspell) 
+void gtkaspell_delete(GtkAspell *gtkaspell) 
 {
        GtkTextView *gtktext = gtkaspell->gtktext;
        
         g_signal_handlers_disconnect_by_func(G_OBJECT(gtktext),
                                             G_CALLBACK(entry_insert_cb),
-                                     gtkaspell);
+                                            gtkaspell);
        g_signal_handlers_disconnect_by_func(G_OBJECT(gtktext),
                                             G_CALLBACK(entry_delete_cb),
-                                            gtkaspell);
+                                            gtkaspell);
        g_signal_handlers_disconnect_by_func(G_OBJECT(gtktext),
-                                            G_CALLBACK(button_press_intercept_cb),
-                                            gtkaspell);
+                                            G_CALLBACK(button_press_intercept_cb),
+                                            gtkaspell);
 
        gtkaspell_uncheck_all(gtkaspell);
        
@@ -898,7 +898,7 @@ static GList *misspelled_suggest(GtkAspell *gtkaspell, guchar *word)
                elements    = aspell_word_list_elements(suggestions);
                list        = g_list_append(list, g_strdup(word)); 
                
-               while (newword = aspell_string_enumeration_next(elements))
+               while ((newword = aspell_string_enumeration_next(elements)) != NULL)
                        list = g_list_append(list, g_strdup(newword));
 
                gtkaspell->max_sug          = g_list_length(list) - 1;
index ac27cf3..4fbd5d6 100644 (file)
@@ -25,7 +25,7 @@ typedef enum
        QUICK_SEARCH_SUBJECT,
        QUICK_SEARCH_FROM,
        QUICK_SEARCH_TO,
-       QUICK_SEARCH_EXTENDED,
+       QUICK_SEARCH_EXTENDED
 } QuickSearchType;
 
 typedef struct _QuickSearch QuickSearch;
index 8406886..543e6c1 100644 (file)
@@ -49,7 +49,7 @@ typedef enum
        M_HIDE_READ_MSG       = 1 << 13,
        M_DELAY_EXEC          = 1 << 14,
        M_NOT_NEWS            = 1 << 15,
-       M_DELAYED_FLAGS       = 1 << 16,
+       M_DELAYED_FLAGS       = 1 << 16
 } SensitiveCond;
 
 typedef enum
index 0010a41..e56b9dd 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -189,16 +189,16 @@ gboolean mh_scan_required(Folder *folder, FolderItem *item)
                (s.st_mtime - 3600 != item->mtime)) {
                debug_print("MH scan required, folder updated: %s (%ld > %ld)\n",
                            path,
-                           s.st_mtime,
-                           item->mtime);
+                           (long int) s.st_mtime,
+                           (long int) item->mtime);
                g_free(path);
                return TRUE;
        }
 
        debug_print("MH scan not required: %s (%ld <= %ld)\n",
                    path,
-                   s.st_mtime,
-                   item->mtime);
+                   (long int) s.st_mtime,
+                   (long int) item->mtime);
        g_free(path);
        return FALSE;
 }
index 09b47d8..7d61071 100644 (file)
@@ -38,7 +38,7 @@ typedef struct _MimeViewer            MimeViewer;
 typedef enum
 {
        MIMEVIEW_TEXT,
-       MIMEVIEW_VIEWER,
+       MIMEVIEW_VIEWER
 } MimeViewType;
 
 struct _MimeView
index be206d6..23ee519 100644 (file)
@@ -108,7 +108,8 @@ int partial_msg_in_uidl_list(MsgInfo *msginfo)
                recv_time = RECV_TIME_NONE;
                partial_recv = POP3_TOTALLY_RECEIVED;
                
-               if (sscanf(buf, "%s\t%ld\t%s", uidl, &recv_time, tmp) < 2) {
+               if (sscanf(buf, "%s\t%ld\t%s", uidl, (long int *) &recv_time, 
+                          tmp) < 2) {
                        if (sscanf(buf, "%s", uidl) != 1)
                                continue;
                        else {
@@ -197,7 +198,7 @@ static int partial_uidl_mark_mail(MsgInfo *msginfo, int download)
                sprintf(partial_recv,"0");
                
                if (sscanf(buf, "%s\t%ld\t%s", 
-                          uidl, &recv_time, partial_recv) < 2) {
+                          uidl, (long int *) &recv_time, partial_recv) < 2) {
                        if (sscanf(buf, "%s", uidl) != 1)
                                continue;
                        else {
@@ -206,7 +207,7 @@ static int partial_uidl_mark_mail(MsgInfo *msginfo, int download)
                }
                if (strcmp(tinfo->partial_recv, uidl)) {
                        fprintf(fpnew, "%s\t%ld\t%s\n", 
-                               uidl, recv_time, partial_recv);
+                               uidl, (long int) recv_time, partial_recv);
                } else {
                        gchar *stat = NULL;
                        if (download == POP3_PARTIAL_DLOAD_DLOAD) {
@@ -222,7 +223,7 @@ static int partial_uidl_mark_mail(MsgInfo *msginfo, int download)
                                stat = g_strdup("0");
                        
                        fprintf(fpnew, "%s\t%ld\t%s\n", 
-                               uidl, recv_time, stat);
+                               uidl, (long int) recv_time, stat);
                        g_free(stat);
                }
        }
@@ -365,7 +366,8 @@ gchar *partial_get_filename(const gchar *server, const gchar *login,
                recv_time = RECV_TIME_NONE;
                partial_recv = POP3_TOTALLY_RECEIVED;
                
-               if (sscanf(buf, "%s\t%ld\t%s", uidl, &recv_time, tmp) < 2) {
+               if (sscanf(buf, "%s\t%ld\t%s", uidl, (long int *) &recv_time, 
+                          tmp) < 2) {
                        if (sscanf(buf, "%s", uidl) != 1)
                                continue;
                        else {
index 913b0ba..bb0139f 100644 (file)
@@ -320,7 +320,7 @@ gpgmegtk_passphrase_cb(void *opaque, const char *uid_hint,
 
 void gpgmegtk_free_passphrase()
 {
-    (void)free_passphrase(NULL); // could be inline
+    (void)free_passphrase(NULL); /* could be inline */
 }
 
 #endif /* USE_GPGME */
index c9ad350..78c88e2 100644 (file)
@@ -23,7 +23,7 @@ typedef struct GPGAccountConfig GPGAccountConfig;
 typedef enum {
        SIGN_KEY_DEFAULT,
        SIGN_KEY_BY_FROM,
-       SIGN_KEY_CUSTOM,
+       SIGN_KEY_CUSTOM
 } SignKeyType;
 
 #include "prefs_account.h"
index 4b05555..254ed08 100644 (file)
@@ -171,7 +171,7 @@ set_row (GtkCList *clist, gpgme_key_t key)
     const char *text[N_COL_TITLES];
     char *algo_buf;
     int row;
-    gssize by_read = 0, by_written = 0;
+    gsize by_read = 0, by_written = 0;
     gchar *ret_str;
 
     /* first check whether the key is capable of encryption which is not
index 307b463..239bfa9 100644 (file)
@@ -25,7 +25,7 @@
 typedef enum {
        KEY_SELECTION_OK,
        KEY_SELECTION_CANCEL,
-       KEY_SELECTION_DONT,
+       KEY_SELECTION_DONT
 } SelectionResult;
        
 gpgme_key_t *gpgmegtk_recipient_selection (GSList *recp_names, SelectionResult *result);
index 6cfe3ce..228aa57 100644 (file)
@@ -119,7 +119,6 @@ static const gchar *get_validity_str(unsigned long validity)
 gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status)
 {
        gpgme_signature_t sig = NULL;
-       gpgme_user_id_t user = NULL;
        gchar *uname = NULL;
        gpgme_key_t key;
 
@@ -247,10 +246,10 @@ gpgme_data_t sgpgme_data_from_mimeinfo(MimeInfo *mimeinfo)
        g_unlink(tmp_file);
        g_free(tmp_file);
 
-       debug_print("data %p (%d %d)\n", data, mimeinfo->offset, mimeinfo->length);
+       debug_print("data %p (%d %d)\n", (void *)&data, mimeinfo->offset, mimeinfo->length);
        if (err) {
                debug_print ("gpgme_data_new_from_file failed: %s\n",
-                   gpgme_strerror (err));
+                            gpgme_strerror (err));
                return NULL;
        }
        return data;
index ed3893b..81e29c3 100644 (file)
@@ -262,7 +262,7 @@ static MimeInfo *pgpinline_decrypt(MimeInfo *mimeinfo)
        PrivacyDataPGP *data = NULL;
        gpgme_ctx_t ctx;
        gchar *chars;
-       int len;
+       size_t len;
        
        if (gpgme_new(&ctx) != GPG_ERR_NO_ERROR)
                return NULL;
index 49e480b..158a415 100644 (file)
@@ -280,7 +280,7 @@ static MimeInfo *pgpmime_decrypt(MimeInfo *mimeinfo)
        PrivacyDataPGP *data = NULL;
        gpgme_ctx_t ctx;
        gchar *chars;
-       int len;
+       size_t len;
 
        if (gpgme_new(&ctx) != GPG_ERR_NO_ERROR)
                return NULL;
index 14c4a0c..d42634f 100644 (file)
@@ -76,7 +76,7 @@ typedef enum
        TRAYICON_NEWMARKED,
        TRAYICON_UNREAD,
        TRAYICON_UNREADMARKED,
-       TRAYICON_NOTHING,
+       TRAYICON_NOTHING
 } TrayIconType;
 
 static void trayicon_get_cb        (gpointer data, guint action, GtkWidget *widget);
@@ -136,7 +136,7 @@ static void set_trayicon_pixmap(TrayIconType icontype)
 
 static void update(void)
 {
-       gint new, unread, unreadmarked, marked, total;
+       guint new, unread, unreadmarked, marked, total;
        gchar *buf;
        TrayIconType icontype = TRAYICON_NOTHING;
 
index 0b71afd..a55a8ce 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -599,8 +599,8 @@ void pop3_get_uidl_table(PrefsAccount *ac_prefs, Pop3Session *session)
                recv_time = RECV_TIME_NONE;
                partial_recv = POP3_TOTALLY_RECEIVED;
                
-               if (sscanf(buf, "%s\t%ld\t%s", uidl, &recv_time, tmp) < 3) {
-                       if (sscanf(buf, "%s\t%ld", uidl, &recv_time) != 2) {
+               if (sscanf(buf, "%s\t%ld\t%s", uidl, (long int *) &recv_time, tmp) < 3) {
+                       if (sscanf(buf, "%s\t%ld", uidl, (long int *) &recv_time) != 2) {
                                if (sscanf(buf, "%s", uidl) != 1)
                                        continue;
                                else {
@@ -663,7 +663,7 @@ gint pop3_write_uidl_list(Pop3Session *session)
                if (msg->uidl && msg->received &&
                    (!msg->deleted || session->state != POP3_DONE))
                        fprintf(fp, "%s\t%ld\t%d\n", 
-                               msg->uidl, msg->recv_time, msg->partial_recv);
+                               msg->uidl, (long int) msg->recv_time, msg->partial_recv);
        }
 
        if (fclose(fp) == EOF) FILE_OP_ERROR(path, "fclose");
index 6ddf366..de3ddb3 100644 (file)
@@ -875,7 +875,7 @@ void prefs_account_set_privacy_prefs(PrefsAccount *account, gchar *id, gchar *ne
 {
        gchar *orig_key = NULL, *value;
 
-       if (g_hash_table_lookup_extended(account->privacy_prefs, id, (gpointer *) &orig_key, (gpointer *) &value)) {
+       if (g_hash_table_lookup_extended(account->privacy_prefs, id, (gpointer *)(gchar *) &orig_key, (gpointer *)(gchar *) &value)) {
                g_hash_table_remove(account->privacy_prefs, id);
 
                g_free(orig_key);
index dea35af..ece1692 100644 (file)
@@ -33,7 +33,7 @@ typedef enum {
        A_IMAP4,
        A_NNTP,
        A_LOCAL,
-       A_NONE,         /* SMTP only */
+       A_NONE          /* SMTP only */
 } RecvProtocol;
 
 typedef enum {
index a246a13..dbba7e8 100644 (file)
@@ -601,13 +601,13 @@ static void prefs_actions_up(GtkWidget *w, gpointer data)
 {
        GtkTreePath *prev, *sel, *try;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(actions.actions_list_view)),
-                (GtkTreeModel **) &store,      
+                (GtkTreeModel **)(GtkListStore *) store,       
                 &isel))
                return;
 
@@ -643,14 +643,14 @@ static void prefs_actions_up(GtkWidget *w, gpointer data)
 
 static void prefs_actions_down(GtkWidget *w, gpointer data)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        GtkTreePath *try;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(actions.actions_list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index dc4d713..8328e4c 100644 (file)
@@ -561,13 +561,13 @@ static void prefs_custom_header_up(void)
 {
        GtkTreePath *prev, *sel;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(customhdr.list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &isel))
                return;
 
@@ -594,13 +594,13 @@ static void prefs_custom_header_up(void)
 
 static void prefs_custom_header_down(void)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(customhdr.list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index e2a94a8..f1eb297 100644 (file)
@@ -614,13 +614,13 @@ static void prefs_display_header_up(void)
 {
        GtkTreePath *prev, *sel, *try;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(dispheader.headers_list_view)),
-                (GtkTreeModel **) &store,      
+                (GtkTreeModel **)(GtkListStore *) store,       
                 &isel))
                return;
 
@@ -647,14 +647,14 @@ static void prefs_display_header_up(void)
 
 static void prefs_display_header_down(void)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        GtkTreePath *try;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(dispheader.headers_list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index 80b8413..e307421 100644 (file)
@@ -898,13 +898,13 @@ static void prefs_filtering_action_up(void)
 {
        GtkTreePath *prev, *sel, *try;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(filtering_action.action_list_view)),
-                (GtkTreeModel **) &store,      
+                (GtkTreeModel **)(GtkListStore *) store,       
                 &isel))
                return;
 
@@ -939,14 +939,14 @@ static void prefs_filtering_action_up(void)
  */
 static void prefs_filtering_action_down(void)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        GtkTreePath *try;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(filtering_action.action_list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index 8645302..e1da458 100644 (file)
@@ -1288,13 +1288,13 @@ static void prefs_matcher_up(void)
 {
        GtkTreePath *prev, *sel, *try;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(matcher.cond_list_view)),
-                (GtkTreeModel **) &store,      
+                (GtkTreeModel **)(GtkListStore *) store,       
                 &isel))
                return;
 
@@ -1329,14 +1329,14 @@ static void prefs_matcher_up(void)
  */
 static void prefs_matcher_down(void)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        GtkTreePath *try;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(matcher.cond_list_view)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index d2269e9..e8028ff 100644 (file)
@@ -574,13 +574,13 @@ static void prefs_toolbar_up(GtkButton *button, ToolbarPage *prefs_toolbar)
 {
        GtkTreePath *prev, *sel;
        GtkTreeIter isel;
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter iprev;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(prefs_toolbar->list_view_set)),
-                (GtkTreeModel **) &store,      
+                (GtkTreeModel **)(GtkListStore *) store,       
                 &isel))
                return;
 
@@ -606,13 +606,13 @@ static void prefs_toolbar_up(GtkButton *button, ToolbarPage *prefs_toolbar)
 
 static void prefs_toolbar_down(GtkButton *button, ToolbarPage *prefs_toolbar)
 {
-       GtkListStore *store;
+       GtkListStore *store = NULL;
        GtkTreeIter next, sel;
        
        if (!gtk_tree_selection_get_selected
                (gtk_tree_view_get_selection
                        (GTK_TREE_VIEW(prefs_toolbar->list_view_set)),
-                (GtkTreeModel **) &store,
+                (GtkTreeModel **)(GtkListStore *) store,
                 &sel))
                return;
 
index 90c3c7b..08bebf4 100644 (file)
@@ -28,7 +28,7 @@ typedef enum {
        SIGNATURE_OK,
        SIGNATURE_WARN,
        SIGNATURE_INVALID,
-       SIGNATURE_CHECK_FAILED,
+       SIGNATURE_CHECK_FAILED
 } SignatureStatus;
 
 #include <glib.h>
index ab0d11b..d01dd24 100644 (file)
@@ -1571,7 +1571,8 @@ static void parse_parameters(const gchar *parameters, GHashTable *table)
                gchar *charset, *lang, *oldvalue, *newvalue;
 
                attribute = (gchar *) cur->data;
-               if (!g_hash_table_lookup_extended(table, attribute, (gpointer *) &key, (gpointer *) &value))
+               if (!g_hash_table_lookup_extended(
+                       table, attribute, (gpointer *)(gchar *) &key, (gpointer *)(gchar *) &value))
                        continue;
 
                charset = value;
index c0e56e0..7bbbe29 100644 (file)
@@ -50,21 +50,21 @@ typedef enum
        MIMETYPE_APPLICATION,
        MIMETYPE_MESSAGE,
        MIMETYPE_MULTIPART,
-       MIMETYPE_UNKNOWN,
+       MIMETYPE_UNKNOWN
 } MimeMediaType;
 
 typedef enum
 {
        DISPOSITIONTYPE_INLINE,
        DISPOSITIONTYPE_ATTACHMENT,
-       DISPOSITIONTYPE_UNKNOWN,
+       DISPOSITIONTYPE_UNKNOWN
 } DispositionType;
 
 typedef enum
 {
        MIMECONTENT_EMPTY,
        MIMECONTENT_FILE,               /* the file contains all content including sub parts */
-       MIMECONTENT_MEM,
+       MIMECONTENT_MEM
 } MimeContent;
 
 #include <glib.h>
index bd89894..671f718 100644 (file)
@@ -151,7 +151,7 @@ typedef guint32 MsgTmpFlags;
 
 typedef enum {
        MSGINFO_UPDATE_FLAGS = 1 << 0,
-       MSGINFO_UPDATE_DELETED = 1 << 1,
+       MSGINFO_UPDATE_DELETED = 1 << 1
 } MsgInfoUpdateFlags;
 
 #include "procmime.h"
index 2a3df05..c5a512b 100644 (file)
@@ -738,7 +738,7 @@ static void textview_write_body(TextView *textview, MimeInfo *mimeinfo)
                charset = textview->messageview->forced_charset;
        else
                charset = procmime_mimeinfo_get_parameter(mimeinfo, "charset");
-
+printf("charset %s\n", charset);
        textview_set_font(textview, charset);
 
        conv = conv_code_converter_new(charset);
index 5f50c8b..dd00ca1 100644 (file)
@@ -31,7 +31,7 @@ typedef enum
        UNDO_ACTION_INSERT,
        UNDO_ACTION_DELETE,
        UNDO_ACTION_REPLACE_INSERT,
-       UNDO_ACTION_REPLACE_DELETE,
+       UNDO_ACTION_REPLACE_DELETE
 } UndoAction;
 
 typedef enum 
@@ -39,7 +39,7 @@ typedef enum
        UNDO_STATE_TRUE,
        UNDO_STATE_FALSE,
        UNDO_STATE_UNCHANGED,
-       UNDO_STATE_REFRESH,
+       UNDO_STATE_REFRESH
 } UndoState;
 
 typedef struct _UndoMain UndoMain;