Index: mail/ChangeLog
===================================================================
--- mail/ChangeLog	(revision 34343)
+++ mail/ChangeLog	(working copy)
@@ -1,3 +1,14 @@
+2007-10-01  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #473903
+
+	* mail-send-recv.c: (build_dialog), (receive_get_folder):
+	Fixes serious warnings, rest is because of this fix.
+	* em-event.c: (em_event_target_new_send_receive):
+	* em-event.h: (struct _EMEventTargetSendReceive),
+	(em_event_target_new_send_receive):
+	Changed structure member and function prototype to reflect fixes.
+
 2007-10-01  Sankar P  <psankar@novell.com>
 
 	* em-format-html.c: (efh_format_headers):
Index: mail/mail-send-recv.c
===================================================================
--- mail/mail-send-recv.c	(revision 34343)
+++ mail/mail-send-recv.c	(working copy)
@@ -539,7 +539,7 @@
 	
 	/* Hook: If some one wants to hook on to the sendreceive dialog, this is the way to go. */
 	target = em_event_target_new_send_receive (em_event_peek(), table, data, row, EM_EVENT_SEND_RECEIVE);
-	e_event_emit (em_event_peek(), "mail.sendreceive", target);
+	e_event_emit ((EEvent *)em_event_peek (), "mail.sendreceive", (EEventTarget *) target);
 	
 	if (outbox && destination) {
 		info = g_hash_table_lookup (data->active, SEND_URI_KEY);
@@ -732,7 +732,7 @@
 	struct _send_info *info = data;
 	CamelFolder *folder;
 	struct _folder_info *oldinfo;
-	gpointer oldkey;
+	gpointer oldkey, oldinfoptr;
 
 	g_mutex_lock(info->data->lock);
 	oldinfo = g_hash_table_lookup(info->data->folders, uri);
@@ -749,7 +749,8 @@
 	/* and we assume the newer one is the same, but unref the old one anyway */
 	g_mutex_lock(info->data->lock);
 	
-	if (g_hash_table_lookup_extended(info->data->folders, uri, &oldkey, (void **)&oldinfo)) {
+	if (g_hash_table_lookup_extended (info->data->folders, uri, &oldkey, &oldinfoptr)) {
+		oldinfo = (struct _folder_info *) oldinfoptr;
 		camel_object_unref(oldinfo->folder);
 		oldinfo->folder = folder;
 	} else {
Index: mail/em-event.c
===================================================================
--- mail/em-event.c	(revision 34343)
+++ mail/em-event.c	(working copy)
@@ -177,7 +177,7 @@
 }
 
 EMEventTargetSendReceive *
-em_event_target_new_send_receive(EMEvent *eme, GtkWidget *table, gpointer *data, int row, guint32 flags)
+em_event_target_new_send_receive(EMEvent *eme, GtkWidget *table, gpointer data, int row, guint32 flags)
 {
 	EMEventTargetSendReceive *t = e_event_target_new(&eme->popup, EM_EVENT_TARGET_SEND_RECEIVE, sizeof(*t));
 
Index: mail/em-event.h
===================================================================
--- mail/em-event.h	(revision 34343)
+++ mail/em-event.h	(working copy)
@@ -100,7 +100,7 @@
 	EEventTarget target;
 	
 	struct _GtkWidget *table;
-	gpointer *data;
+	gpointer data;
 	int row;
 };
 
@@ -125,7 +125,7 @@
 EMEventTargetFolder *em_event_target_new_folder(EMEvent *emp, const char *uri, guint32 flags);
 EMEventTargetComposer *em_event_target_new_composer(EMEvent *emp, const struct _EMsgComposer *composer, guint32 flags);
 EMEventTargetMessage *em_event_target_new_message(EMEvent *emp, struct _CamelFolder *folder, struct _CamelMimeMessage *message, const char *uid, guint32 flags);
-EMEventTargetSendReceive * em_event_target_new_send_receive(EMEvent *eme, struct _GtkWidget *table, gpointer *data, int row, guint32 flags);
+EMEventTargetSendReceive * em_event_target_new_send_receive(EMEvent *eme, struct _GtkWidget *table, gpointer data, int row, guint32 flags);
 
 /* ********************************************************************** */
 
