aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-05-17 02:52:14 +0800
committerJeremy Katz <katzj@src.gnome.org>2003-05-17 02:52:14 +0800
commita878c6c70b44dc2478acf379603c3c69034cfb7f (patch)
treee4f26e0790e437f6f13b5ac299b4ee273d64272f /mail/message-list.c
parent9c69964a524cf84e29f22e2394145028d70d06a2 (diff)
downloadgsoc2013-evolution-a878c6c70b44dc2478acf379603c3c69034cfb7f.tar.gz
gsoc2013-evolution-a878c6c70b44dc2478acf379603c3c69034cfb7f.tar.zst
gsoc2013-evolution-a878c6c70b44dc2478acf379603c3c69034cfb7f.zip
Add #include to fix warning.
2003-05-17 Jeremy Katz <katzj@redhat.com> * mail-offline-handler.c: Add #include to fix warning. * mail-mt.c (mail_msg_new): Use glib macros for pointer/int conversions. (mail_msg_free): Likewise. (mail_msg_cancel): Likewise. (mail_msg_wait): Likewise. (mail_msg_active): Likewise. * mail-session.c (main_register_timeout): Likewise. (register_timeout): Likewise. (main_remove_timeout): Likewise. (remove_timeout): Likewise. * message-list.c (ml_value_to_string): Likewise. * mail-identify.c: Add #include to fix warning. * mail-config.c (config_write_fonts): Don't pass extra arguments to g_warning. * mail-callbacks.c: Add #include to fix warning. svn path=/trunk/; revision=21222
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index a33f0d0342..3f3da9f8d2 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -762,13 +762,13 @@ ml_value_to_string (ETreeModel *etm, int col, const void *value, void *data)
switch (col){
case COL_MESSAGE_STATUS:
- i = (unsigned int)value;
+ i = GPOINTER_TO_UINT(value);
if (i > 4)
return g_strdup ("");
return g_strdup (_(status_map[i]));
case COL_SCORE:
- i = (unsigned int) value + 3;
+ i = GPOINTER_TO_UINT(value) + 3;
if (i > 6)
i = 3;
return g_strdup (_(score_map[i]));
@@ -778,7 +778,7 @@ ml_value_to_string (ETreeModel *etm, int col, const void *value, void *data)
case COL_DELETED:
case COL_UNREAD:
case COL_FOLLOWUP_FLAG_STATUS:
- return g_strdup_printf ("%d", (int) value);
+ return g_strdup_printf ("%d", GPOINTER_TO_UINT(value));
case COL_SENT:
case COL_RECEIVED: