$NetBSD: patch-ad,v 1.1 2006/03/14 23:36:11 wiz Exp $ --- src/gnome/druid-acct-period.c.orig 2006-03-06 03:03:15.000000000 +0100 +++ src/gnome/druid-acct-period.c @@ -334,7 +334,7 @@ ap_show_menu (GnomeDruidPage *druidpage, * we may have closed books since last time. */ info->earliest = get_earliest_in_book (gnc_get_current_book()); info->earliest_str = qof_print_date(info->earliest); - PINFO ("date of earliest is %ld %s", info->earliest, ctime (&info->earliest)); + PINFO ("date of earliest is %ld %s", (long)info->earliest, ctime (&info->earliest)); prepare_remarks (info); } @@ -528,7 +528,7 @@ ap_druid_create (AcctPeriodInfo *info) info->earliest = get_earliest_in_book (gnc_get_current_book()); info->earliest_str = qof_print_date(info->earliest); PINFO ("date of earliest transaction is %ld %s", - info->earliest, ctime (&info->earliest)); + (long)info->earliest, ctime (&info->earliest)); g_date_clear (&info->closing_date, 1); g_date_set_time_t (&info->closing_date, info->earliest);