From 736d90da1b6cee6333889912513c634d55004d90 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 29 Nov 2009 13:32:03 +0100 Subject: Introduce inode_no property --- zip/zip.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'zip/zip.cpp') 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 -- cgit v1.2.3