Fix some splint issues

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17928 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2009-02-16 21:30:21 +00:00
parent 905d7551a8
commit e9929bd401
13 changed files with 181 additions and 210 deletions

View File

@@ -61,6 +61,7 @@ static void set_template_act_guid( gpointer pObject, gpointer pValue );
static const GncSqlColumnTableEntry col_table[] =
{
/*# -fullinitblock */
{ "guid", CT_GUID, 0, COL_NNUL|COL_PKEY, "guid" },
{ "name", CT_STRING, SX_MAX_NAME_LEN, 0, NULL, GNC_SX_NAME },
{ "enabled", CT_BOOLEAN, 0, COL_NNUL, NULL, NULL,
@@ -84,6 +85,7 @@ static const GncSqlColumnTableEntry col_table[] =
{ "template_act_guid", CT_GUID, 0, COL_NNUL, NULL, NULL,
get_template_act_guid, set_template_act_guid },
{ NULL }
/*# +fullinitblock */
};
/* ================================================================= */
@@ -223,7 +225,6 @@ load_all_sxes( GncSqlBackend* be )
gnc_sql_statement_dispose( stmt );
if( result != NULL ) {
GncSqlRow* row;
int r;
SchedXactions *sxes;
GList* list = NULL;
sxes = gnc_book_get_schedxactions( be->primary_book );
@@ -311,7 +312,11 @@ gnc_sql_init_schedxaction_handler( void )
GNC_ID_SCHEDXACTION,
gnc_sql_save_schedxaction, /* commit */
load_all_sxes, /* initial_load */
create_sx_tables /* create_tables */
create_sx_tables, /* create_tables */
NULL, /* compile_query */
NULL, /* run_query */
NULL, /* free_query */
NULL /* write */
};
qof_object_register_backend( GNC_ID_SCHEDXACTION, GNC_SQL_BACKEND, &be_data );