FreeCalypso > hg > freecalypso-reveng
view pirollback/analyze.c @ 44:074237879eca
pirollback: name check implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 06 Jul 2013 21:31:55 +0000 |
parents | 9f4469766c74 |
children | 78ac405716db |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> extern char *imgfile; extern int last_inode; main(argc, argv) char **argv; { if (argc != 2) { fprintf(stderr, "usage: %s ffs-image\n", argv[0]); exit(1); } imgfile = argv[1]; read_img_file(); read_inodes(); printf("Last inode is #%x\n", last_inode); walk_tree(); printf("Tree walk succeeded\n"); check_object_names(); printf("Name check succeeded\n"); exit(0); }