Change list of files from a list to a vector. read_pvd() for
ISO9660::FS works. iso4.cpp: show ISO 9660 info for CD-images (like iso1 for ISO images).
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: iso1.cpp,v 1.2 2006/03/06 19:39:35 rocky Exp $
|
||||
$Id: iso1.cpp,v 1.3 2006/03/07 19:55:11 rocky Exp $
|
||||
|
||||
Copyright (C) 2006 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
int
|
||||
main(int argc, const char *argv[])
|
||||
{
|
||||
list < ISO9660::Stat *> stat_list;
|
||||
stat_vector_t stat_vector;
|
||||
ISO9660::IFS *p_iso = new ISO9660::IFS;
|
||||
char const *psz_fname;
|
||||
const char *psz_path="/";
|
||||
@@ -94,11 +94,11 @@ main(int argc, const char *argv[])
|
||||
print_vd_info("Volume Set ", get_volumeset_id);
|
||||
}
|
||||
|
||||
if (p_iso->readdir (psz_path, stat_list))
|
||||
if (p_iso->readdir (psz_path, stat_vector))
|
||||
{
|
||||
/* Iterate over the list of files. */
|
||||
list <ISO9660::Stat *>::iterator i;
|
||||
for(i=stat_list.begin(); i != stat_list.end(); ++i)
|
||||
stat_vector_iterator_t i;
|
||||
for(i=stat_vector.begin(); i != stat_vector.end(); ++i)
|
||||
{
|
||||
char filename[4096];
|
||||
ISO9660::Stat *p_s = *i;
|
||||
@@ -109,7 +109,7 @@ main(int argc, const char *argv[])
|
||||
delete(p_s);
|
||||
}
|
||||
|
||||
stat_list.clear();
|
||||
stat_vector.clear();
|
||||
}
|
||||
|
||||
delete(p_iso);
|
||||
|
||||
Reference in New Issue
Block a user