diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-05-17 02:52:14 +0800 |
---|---|---|
committer | Jeremy Katz <katzj@src.gnome.org> | 2003-05-17 02:52:14 +0800 |
commit | a878c6c70b44dc2478acf379603c3c69034cfb7f (patch) | |
tree | e4f26e0790e437f6f13b5ac299b4ee273d64272f /mail/mail-session.c | |
parent | 9c69964a524cf84e29f22e2394145028d70d06a2 (diff) | |
download | gsoc2013-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/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index db5695c095..52bfba7497 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -657,7 +657,7 @@ static void main_register_timeout (CamelSession *session, void *event_data, void *data) { MailSession *ms = (MailSession *)session; - unsigned int handle = (unsigned int)event_data; + unsigned int handle = GPOINTER_TO_UINT(event_data); struct _timeout_data *td; MAIL_SESSION_LOCK(session, lock); @@ -707,7 +707,7 @@ register_timeout (CamelSession *session, guint32 interval, CamelTimeoutCallback camel_object_ref (ms); mail_async_event_emit (ms->async, MAIL_ASYNC_GUI, (MailAsyncFunc) main_register_timeout, - (CamelObject *) session, (void *) ret, NULL); + (CamelObject *) session, GUINT_TO_POINTER(ret), NULL); return ret; } @@ -716,7 +716,7 @@ static void main_remove_timeout (CamelSession *session, void *event_data, void *data) { MailSession *ms = (MailSession *) session; - unsigned int handle = (unsigned int) event_data; + unsigned int handle = GPOINTER_TO_UINT(event_data); struct _timeout_data *td; MAIL_SESSION_LOCK(session, lock); @@ -750,7 +750,7 @@ remove_timeout (CamelSession *session, guint handle) if (remove) { camel_object_ref (ms); mail_async_event_emit (ms->async, MAIL_ASYNC_GUI, (MailAsyncFunc) main_remove_timeout, - (CamelObject *) session, (void *) handle, NULL); + (CamelObject *) session, GUINT_TO_POINTER(handle), NULL); } else g_warning ("Removing a timeout i dont know about (or twice): %d", handle); |