comparison src/libpst.c @ 105:4703d622e95b

cleanup fedora9 compile warnings
author Carl Byington <carl@five-ten-sg.com>
date Sat, 11 Oct 2008 12:22:20 -0700
parents 39ba19372732
children 7133b39975f7
comparison
equal deleted inserted replaced
104:39ba19372732 105:4703d622e95b
923 923
924 924
925 int pst_build_desc_ptr (pst_file *pf, off_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val) { 925 int pst_build_desc_ptr (pst_file *pf, off_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val) {
926 struct pst_table_ptr_structn table, table2; 926 struct pst_table_ptr_structn table, table2;
927 pst_descn desc_rec; 927 pst_descn desc_rec;
928 pst_desc_ll *d_ptr=NULL, *parent=NULL;
929 int32_t item_count; 928 int32_t item_count;
930 uint64_t old = start_val; 929 uint64_t old = start_val;
931 int x; 930 int x;
932 char *buf = NULL, *bptr; 931 char *buf = NULL, *bptr;
933 932
983 DEBUG_RET(); 982 DEBUG_RET();
984 return -1; 983 return -1;
985 } 984 }
986 } 985 }
987 DEBUG_INDEX(("New Record %#"PRIx64" with parent %#x\n", desc_rec.d_id, desc_rec.parent_id)); 986 DEBUG_INDEX(("New Record %#"PRIx64" with parent %#x\n", desc_rec.d_id, desc_rec.parent_id));
988 d_ptr = (pst_desc_ll*) xmalloc(sizeof(pst_desc_ll)); 987 {
989 d_ptr->id = desc_rec.d_id; 988 pst_desc_ll *d_ptr = (pst_desc_ll*) xmalloc(sizeof(pst_desc_ll));
990 d_ptr->parent_id = desc_rec.parent_id; 989 d_ptr->id = desc_rec.d_id;
991 d_ptr->list_index = pst_getID(pf, desc_rec.list_id); 990 d_ptr->parent_id = desc_rec.parent_id;
992 d_ptr->desc = pst_getID(pf, desc_rec.desc_id); 991 d_ptr->list_index = pst_getID(pf, desc_rec.list_id);
993 record_descriptor(pf, d_ptr); // add to the global tree 992 d_ptr->desc = pst_getID(pf, desc_rec.desc_id);
993 record_descriptor(pf, d_ptr); // add to the global tree
994 }
994 } 995 }
995 } else { 996 } else {
996 // this node contains node pointers 997 // this node contains node pointers
997 DEBUG_HEXDUMPC(buf, DESC_BLOCK_SIZE, ITEM_SIZE32); 998 DEBUG_HEXDUMPC(buf, DESC_BLOCK_SIZE, ITEM_SIZE32);
998 if (item_count > INDEX_COUNT_MAX) { 999 if (item_count > INDEX_COUNT_MAX) {