diff --git a/src/business/business-core/sql/gnc-bill-term-sql.c b/src/business/business-core/sql/gnc-bill-term-sql.c index 2935e715cd..1a1c4aa8a6 100644 --- a/src/business/business-core/sql/gnc-bill-term-sql.c +++ b/src/business/business-core/sql/gnc-bill-term-sql.c @@ -143,12 +143,18 @@ load_all_billterms( GncSqlBackend* be ) } /* ================================================================= */ +static void +do_save_billterm( QofInstance* inst, gpointer p2 ) +{ + gnc_sql_save_billterm( (GncSqlBackend*)p2, inst ); +} + static void write_billterms( GncSqlBackend* be ) { g_return_if_fail( be != NULL ); - qof_object_foreach( GNC_ID_BILLTERM, be->primary_book, (QofInstanceForeachCB)gnc_sql_save_billterm, (gpointer)be ); + qof_object_foreach( GNC_ID_BILLTERM, be->primary_book, do_save_billterm, (gpointer)be ); } /* ================================================================= */