From d6b245772e1d66a53165ee83304b97fe124c6ecc Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 23 Jul 2018 15:22:51 -0700 Subject: [PATCH] Fix out-of-order declarations. Broke Travis. --- gnucash/import-export/aqb/gnc-ab-kvp.c | 2 +- gnucash/import-export/csv-exp/csv-transactions-export.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnucash/import-export/aqb/gnc-ab-kvp.c b/gnucash/import-export/aqb/gnc-ab-kvp.c index 9d1988f64d..4b5b1f679e 100644 --- a/gnucash/import-export/aqb/gnc-ab-kvp.c +++ b/gnucash/import-export/aqb/gnc-ab-kvp.c @@ -108,8 +108,8 @@ gnc_ab_get_account_trans_retrieval(const Account *a) void gnc_ab_set_account_trans_retrieval(Account *a, time64 time) { - xaccAccountBeginEdit(a); Timespec ts = {time, 0}; + xaccAccountBeginEdit(a); qof_instance_set (QOF_INSTANCE (a), "ab-trans-retrieval", &ts, NULL); diff --git a/gnucash/import-export/csv-exp/csv-transactions-export.c b/gnucash/import-export/csv-exp/csv-transactions-export.c index 393e0ed26a..7a1970e6b5 100644 --- a/gnucash/import-export/csv-exp/csv-transactions-export.c +++ b/gnucash/import-export/csv-exp/csv-transactions-export.c @@ -148,9 +148,9 @@ add_reconcile_date (gchar *so_far, Split *split, CsvExportInfo *info) if (xaccSplitGetReconcile (split) == YREC) { + time64 t = xaccSplitGetDateReconciled (split); char str_rec_date[MAX_DATE_LENGTH + 1]; memset (str_rec_date, 0, sizeof(str_rec_date)); - time64 t = xaccSplitGetDateReconciled (split); qof_print_date_buff (str_rec_date, sizeof(str_rec_date), t); result = g_strconcat (so_far, str_rec_date, info->mid_sep, NULL); }