From: John L. <mov...@us...> - 2002-05-08 13:52:43
|
Update of /cvsroot/oprofile/oprofile/libdb In directory usw-pr-cvs1:/tmp/cvs-serv15622/libdb Modified Files: db-debug.c Log Message: a couple of boring things Index: db-debug.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/libdb/db-debug.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- db-debug.c 7 May 2002 01:34:05 -0000 1.4 +++ db-debug.c 8 May 2002 13:52:40 -0000 1.5 @@ -14,7 +14,7 @@ #include "db.h" -static void do_display_tree(const db_tree_t * tree, db_page_idx_t page_idx) +static void do_display_tree(db_tree_t const * tree, db_page_idx_t page_idx) { size_t i; db_page_t * page; @@ -32,12 +32,12 @@ } } -void db_display_tree(const db_tree_t * tree) +void db_display_tree(db_tree_t const * tree) { do_display_tree(tree, tree->descr->root_idx); } -static void do_raw_display_tree(const db_tree_t * tree) +void db_raw_display_tree(db_tree_t const * tree) { size_t i; printf("tree root %d\n", tree->descr->root_idx); @@ -57,17 +57,12 @@ } } -void db_raw_display_tree(const db_tree_t * tree) -{ - do_raw_display_tree(tree); -} - -static int do_check_page_pointer(const db_tree_t * tree, - db_page_idx_t page_idx, int * viewed_page) +static int do_check_page_pointer(db_tree_t const * tree, + db_page_idx_t page_idx, int * viewed_page) { int ret; size_t i; - const db_page_t * page; + db_page_t const * page; if (page_idx == db_nil_page) return 0; @@ -110,7 +105,7 @@ return ret; } -int db_check_page_pointer(const db_tree_t * tree) +int db_check_page_pointer(db_tree_t const * tree) { int ret; int * viewed_page; @@ -130,11 +125,11 @@ return ret; } -static int do_check_tree(const db_tree_t * tree, db_page_idx_t page_nr, - db_key_t last) +static int do_check_tree(db_tree_t const * tree, + db_page_idx_t page_nr, db_key_t last) { size_t i; - const db_page_t * page; + db_page_t const * page; page = page_nr_to_page_ptr(tree, page_nr); @@ -155,7 +150,7 @@ return 0; } -int db_check_tree(const db_tree_t * tree) +int db_check_tree(db_tree_t const * tree) { int ret = db_check_page_pointer(tree); if (!ret) |