Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/squash.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ int squash_scandir(sqfs *fs, const char *dirname, struct SQUASH_DIRENT ***nameli
* The returned path is referenced by an internal cache and must not be freed.
*/
#ifdef _WIN32
#define SQUASH_OS_PATH const wchar_t*
#define SQUASH_OS_PATH wchar_t*
#else
#define SQUASH_OS_PATH const char*
#define SQUASH_OS_PATH char*
#endif
SQUASH_OS_PATH squash_tmpdir();
SQUASH_OS_PATH squash_tmpf(SQUASH_OS_PATH tmpdir, const char *ext_name);
Expand Down
2 changes: 1 addition & 1 deletion src/extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void squash_extract_cache_insert(sqfs *fs, const char *path, SQUASH_OS_PA
SQUASH_OS_PATH squash_extract(sqfs *fs, const char *path, const char *ext_name)
{
SQUASH_OS_PATH ret;
static struct SquashExtractEntry* found;
static const struct SquashExtractEntry* found;

found = squash_extract_cache_find(fs, path);
if (NULL != found) {
Expand Down