summaryrefslogtreecommitdiffstats
path: root/generic/tclZipfs.c
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2017-12-29 21:41:00 (GMT)
committerhypnotoad <yoda@etoyoc.com>2017-12-29 21:41:00 (GMT)
commitb533731c50bd2d75793771054f53afd96afbfd80 (patch)
treefdcea39ee24bbe060b1a35e055791af815ee1188 /generic/tclZipfs.c
parent983b089edb6d9c4f233f21a1792393758dea4f65 (diff)
downloadtcl-b533731c50bd2d75793771054f53afd96afbfd80.zip
tcl-b533731c50bd2d75793771054f53afd96afbfd80.tar.gz
tcl-b533731c50bd2d75793771054f53afd96afbfd80.tar.bz2
Modifications to clean up warnings on compile
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r--generic/tclZipfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 45ba8e2..49f3b04 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -155,14 +155,14 @@ typedef struct ZipFile {
long length; /* Length of memory mapped file */
unsigned char *tofree; /* Non-NULL if malloc'ed file */
int nfiles; /* Number of files in archive */
- int baseoffs; /* Archive start */
- int baseoffsp; /* Password start */
- int centoffs; /* Archive directory start */
- char pwbuf[264]; /* Password buffer */
+ unsigned long baseoffs; /* Archive start */
+ long baseoffsp; /* Password start */
+ unsigned long centoffs; /* Archive directory start */
+ unsigned char pwbuf[264]; /* Password buffer */
#if defined(_WIN32) || defined(_WIN64)
HANDLE mh;
#endif
- int nopen; /* Number of open files on archive */
+ unsigned long nopen; /* Number of open files on archive */
struct ZipEntry *entries; /* List of files in archive */
struct ZipEntry *topents; /* List of top-level dirs in archive */
#if HAS_DRIVES
@@ -1796,7 +1796,7 @@ wrerr:
return TCL_ERROR;
}
if ((len + pos[0]) & 3) {
- char abuf[8];
+ unsigned char abuf[8];
/*
* Align payload to next 4-byte boundary using a dummy extra
@@ -1806,7 +1806,7 @@ wrerr:
zip_write_short(abuf, 0xffff);
zip_write_short(abuf + 2, align - 4);
zip_write_int(abuf + 4, 0x03020100);
- if (Tcl_Write(out, abuf, align) != align) {
+ if (Tcl_Write(out, (const char *)abuf, align) != align) {
goto wrerr;
}
}
@@ -4151,7 +4151,7 @@ int TclZipfs_AppHook(int *argc, char ***argv)
char *archive;
Tcl_FindExecutable(*argv[0]);
- archive=Tcl_GetNameOfExecutable();
+ archive=(char *)Tcl_GetNameOfExecutable();
TclZipfs_Init(NULL);
/*
** Look for init.tcl in one of the locations mounted later in this function