r907 - in trunk: . archivers

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Apr 29 04:16:30 EDT 2007


Author: icculus
Date: 2007-04-29 04:16:30 -0400 (Sun, 29 Apr 2007)
New Revision: 907

Modified:
   trunk/CHANGELOG.txt
   trunk/archivers/zip.c
Log:
Minor const correctness tweak in zip archiver.


Modified: trunk/CHANGELOG.txt
===================================================================
--- trunk/CHANGELOG.txt	2007-04-03 05:51:46 UTC (rev 906)
+++ trunk/CHANGELOG.txt	2007-04-29 08:16:30 UTC (rev 907)
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+04292007 - Minor const correctness tweak in zip archiver.
 04032007 - Added a "make dist" target for packing up source code releases.
            Reverted Unix recursive mutex code. There were some portability
            issues I didn't anticipate. Upped version to 1.1.1!

Modified: trunk/archivers/zip.c
===================================================================
--- trunk/archivers/zip.c	2007-04-03 05:51:46 UTC (rev 906)
+++ trunk/archivers/zip.c	2007-04-29 08:16:30 UTC (rev 907)
@@ -836,7 +836,7 @@
 } /* zip_version_does_symlinks */
 
 
-static int zip_entry_is_symlink(ZIPentry *entry)
+static int zip_entry_is_symlink(const ZIPentry *entry)
 {
     return((entry->resolved == ZIP_UNRESOLVED_SYMLINK) ||
            (entry->resolved == ZIP_BROKEN_SYMLINK) ||
@@ -1293,7 +1293,7 @@
 static int ZIP_isSymLink(dvoid *opaque, const char *name, int *fileExists)
 {
     int isDir;
-    ZIPentry *entry = zip_find_entry((ZIPinfo *) opaque, name, &isDir);
+    const ZIPentry *entry = zip_find_entry((ZIPinfo *) opaque, name, &isDir);
     *fileExists = ((isDir) || (entry != NULL));
     BAIL_IF_MACRO(entry == NULL, NULL, 0);
     return(zip_entry_is_symlink(entry));




More information about the physfs-commits mailing list