archive/iso9660: make variables more local
This commit is contained in:
parent
13f9f0315f
commit
e44c0254f7
@ -86,18 +86,17 @@ static constexpr Domain iso9660_domain("iso9660");
|
|||||||
inline void
|
inline void
|
||||||
Iso9660ArchiveFile::Visit(const char *psz_path, ArchiveVisitor &visitor)
|
Iso9660ArchiveFile::Visit(const char *psz_path, ArchiveVisitor &visitor)
|
||||||
{
|
{
|
||||||
CdioList_t *entlist;
|
|
||||||
CdioListNode_t *entnode;
|
|
||||||
iso9660_stat_t *statbuf;
|
|
||||||
char pathname[4096];
|
char pathname[4096];
|
||||||
|
|
||||||
entlist = iso9660_ifs_readdir (iso, psz_path);
|
auto *entlist = iso9660_ifs_readdir (iso, psz_path);
|
||||||
if (!entlist) {
|
if (!entlist) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Iterate over the list of nodes that iso9660_ifs_readdir gives */
|
/* Iterate over the list of nodes that iso9660_ifs_readdir gives */
|
||||||
|
CdioListNode_t *entnode;
|
||||||
_CDIO_LIST_FOREACH (entnode, entlist) {
|
_CDIO_LIST_FOREACH (entnode, entlist) {
|
||||||
statbuf = (iso9660_stat_t *) _cdio_list_node_data (entnode);
|
auto *statbuf = (iso9660_stat_t *)
|
||||||
|
_cdio_list_node_data(entnode);
|
||||||
|
|
||||||
strcpy(pathname, psz_path);
|
strcpy(pathname, psz_path);
|
||||||
strcat(pathname, statbuf->filename);
|
strcat(pathname, statbuf->filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user