Skip to content

Commit

Permalink
Constify the archivers pointers.
Browse files Browse the repository at this point in the history
These were writable for no reason, taking up .data space.
  • Loading branch information
clbr committed Oct 23, 2012
1 parent 69f3a26 commit b13e4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physfs.c
Expand Up @@ -94,7 +94,7 @@ static const PHYSFS_ArchiveInfo *supported_types[] =
NULL
};

static const PHYSFS_Archiver *archivers[] =
static const PHYSFS_Archiver * const archivers[] =
{
&__PHYSFS_Archiver_DIR,
#if (defined PHYSFS_SUPPORTS_ZIP)
Expand Down Expand Up @@ -417,7 +417,7 @@ static DirHandle *tryOpenDir(const PHYSFS_Archiver *funcs,
static DirHandle *openDirectory(const char *d, int forWriting)
{
DirHandle *retval = NULL;
const PHYSFS_Archiver **i;
const PHYSFS_Archiver * const *i;
const char *ext;

BAIL_IF_MACRO(!__PHYSFS_platformExists(d), ERR_NO_SUCH_FILE, NULL);
Expand Down

0 comments on commit b13e4d8

Please sign in to comment.