Some small changes inspired by correspoinding Perl programs.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: iso1.cpp,v 1.3 2006/03/01 14:11:16 rocky Exp $
|
||||
$Id: iso1.cpp,v 1.4 2006/03/02 01:28:58 rocky Exp $
|
||||
|
||||
Copyright (C) 2004, 2006 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -64,6 +64,7 @@ main(int argc, const char *argv[])
|
||||
CdioListNode_t *p_entnode;
|
||||
char const *psz_fname;
|
||||
iso9660_t *p_iso;
|
||||
const char *psz_path="/";
|
||||
|
||||
if (argc > 1)
|
||||
psz_fname = argv[1];
|
||||
@@ -78,7 +79,7 @@ main(int argc, const char *argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
p_entlist = iso9660_ifs_readdir (p_iso, "/");
|
||||
p_entlist = iso9660_ifs_readdir (p_iso, psz_path);
|
||||
|
||||
/* Iterate over the list of nodes that iso9660_ifs_readdir gives */
|
||||
|
||||
@@ -89,7 +90,9 @@ main(int argc, const char *argv[])
|
||||
iso9660_stat_t *p_statbuf =
|
||||
(iso9660_stat_t *) _cdio_list_node_data (p_entnode);
|
||||
iso9660_name_translate(p_statbuf->filename, filename);
|
||||
printf ("/%s\n", filename);
|
||||
printf ("%s [LSN %6d] %8u %s%s\n",
|
||||
2 == p_statbuf->type ? "d" : "-",
|
||||
p_statbuf->lsn, p_statbuf->size, psz_path, filename);
|
||||
}
|
||||
|
||||
_cdio_list_free (p_entlist, true);
|
||||
|
||||
Reference in New Issue
Block a user