summaryrefslogtreecommitdiff
path: root/zip/zip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zip/zip.cpp')
-rw-r--r--zip/zip.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/zip/zip.cpp b/zip/zip.cpp
index adedfbc..4a07b01 100644
--- a/zip/zip.cpp
+++ b/zip/zip.cpp
@@ -183,8 +183,8 @@ struct ZIP_API CVFSZipActionCallback : public CZipActionCallback
static void
build_global_filelist (struct TVFSGlobs *globs)
{
- int iCount;
- int i;
+ unsigned long int iCount;
+ unsigned long int i;
CZipFileHeader *fh;
struct TVFSItem *item;
char *s;
@@ -203,7 +203,7 @@ build_global_filelist (struct TVFSGlobs *globs)
for (i = 0; i < iCount; i++) {
fh = globs->zip->GetFileInfo (i);
if (fh != NULL)
- printf(" No: %i, '%s', IsDir: %i, Size: %lu, SystemAttr = 0x%lX, OriginalAttr = 0x%lX, encrypted = %d\n",
+ printf(" No: %lu, '%s', IsDir: %i, Size: %lu, SystemAttr = 0x%lX, OriginalAttr = 0x%lX, encrypted = %d\n",
i, (LPCTSTR)fh->GetFileName(), fh->IsDirectory(), fh->m_uUncomprSize, fh->GetSystemAttr(), fh->GetOriginalAttributes(), fh->IsEncrypted());
}
printf("\n\n");
@@ -216,6 +216,7 @@ build_global_filelist (struct TVFSGlobs *globs)
item->iSize = (guint64) fh->m_uUncomprSize;
item->iPackedSize = (guint64) fh->m_uComprSize;
+ item->inode_no = (guint64) (i + 1);
if (fh->IsDirectory ())
item->ItemType = vDirectory;
else