aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-mt.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index af8dec71e4..3ec284affd 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,7 +1,8 @@
2001-10-18 Dan Winship <danw@ximian.com>
- * mail-mt.c (mail_call_main): Use va_copy to make this compile on
- ppc again.
+ * mail-mt.c (mail_call_main): Use G_VA_COPY to make this compile
+ on ppc again.
+ (do_call): Here too.
2001-10-17 <NotZed@Ximian.com>
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index ac2e71b7b5..9c3decf0e4 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -866,7 +866,9 @@ do_call(struct _mail_msg *mm)
struct _call_msg *m = (struct _call_msg *)mm;
void *p1, *p2, *p3, *p4, *p5;
int i1;
- va_list ap = m->ap;
+ va_list ap;
+
+ G_VA_COPY(ap, m->ap);
switch(m->type) {
case MAIL_CALL_p_p:
@@ -926,7 +928,7 @@ void *mail_call_main(mail_call_t type, MailMainFunc func, ...)
m = mail_msg_new(&mail_call_op, reply, sizeof(*m));
m->type = type;
m->func = func;
- va_copy(m->ap, ap);
+ G_VA_COPY(m->ap, ap);
if (!ismain) {
e_msgport_put(mail_gui_port, (EMsg *)m);