$NetBSD: patch-ad,v 1.9 2007/07/19 19:35:04 wiz Exp $ --- src/gnome/druid-acct-period.c.orig 2007-04-28 23:16:48.000000000 +0000 +++ src/gnome/druid-acct-period.c @@ -337,7 +337,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); } @@ -534,7 +534,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);