Skip to content

Commit

Permalink
Minor const correctness tweak in zip archiver.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 29, 2007
1 parent 32bc908 commit 35dcb89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -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!
Expand Down
4 changes: 2 additions & 2 deletions archivers/zip.c
Expand Up @@ -836,7 +836,7 @@ static int zip_version_does_symlinks(PHYSFS_uint32 version)
} /* 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) ||
Expand Down Expand Up @@ -1293,7 +1293,7 @@ static int ZIP_isDirectory(dvoid *opaque, const char *name, int *fileExists)
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));
Expand Down

0 comments on commit 35dcb89

Please sign in to comment.