From: Sebastian B. <sb...@us...> - 2014-01-19 18:29:07
|
Update of /cvsroot/simplemail/simplemail In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22171 Modified Files: index_external.c Log Message: Introduced a (still) non-persitent root block field, Index: index_external.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/index_external.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- index_external.c 19 Jan 2014 18:28:47 -0000 1.6 +++ index_external.c 19 Jan 2014 18:29:05 -0000 1.7 @@ -68,6 +68,9 @@ FILE *string_file; FILE *index_file; + /** Identifies the block for the root node. TODO: Make this persistent */ + int root_node; + bnode *tmp; bnode *tmp2; bnode *tmp3; @@ -419,7 +422,7 @@ goto bailout; idx->tmp->leaf = 1; - bnode_add_block(idx, idx->tmp); + idx->root_node = bnode_add_block(idx, idx->tmp); return &idx->index; bailout: |