comparison miscprog/grokdsn.c @ 194:805e99848aea

grokdsn: buglet in the hierarchy traversal order
author Michael Spacefalcon <falcon@ivan.Harhan.ORG>
date Wed, 07 Jan 2015 22:15:51 +0000
parents 37f78f986a0a
children
comparison
equal deleted inserted replaced
193:37f78f986a0a 194:805e99848aea
270 rec = get_dir_entry(dirid); 270 rec = get_dir_entry(dirid);
271 ndir = le32toh(rec->left_child); 271 ndir = le32toh(rec->left_child);
272 if (ndir >= 0) 272 if (ndir >= 0)
273 dump_dir_level(ndir, indent); 273 dump_dir_level(ndir, indent);
274 dump_dir_entry(rec, indent); 274 dump_dir_entry(rec, indent);
275 ndir = le32toh(rec->subtree_dirid);
276 if (ndir >= 0)
277 dump_dir_level(ndir, indent + 2);
275 ndir = le32toh(rec->right_child); 278 ndir = le32toh(rec->right_child);
276 if (ndir >= 0) 279 if (ndir >= 0)
277 dump_dir_level(ndir, indent); 280 dump_dir_level(ndir, indent);
278 ndir = le32toh(rec->subtree_dirid);
279 if (ndir >= 0)
280 dump_dir_level(ndir, indent + 2);
281 return(0); 281 return(0);
282 } 282 }
283 283
284 dump_dir_tree() 284 dump_dir_tree()
285 { 285 {