/***********************************************************************
* Return the next byte in the pseudo-random sequence
*/
-static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
+static int decrypt_byte(unsigned long* pkeys, const unsigned long* /* pcrc_32_tab */)
{
unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem
voidpf stream));
-voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char* filename, int mode)
+voidpf ZCALLBACK fopen_file_func (voidpf /* opaque */, const char* filename, int mode)
{
FILE* file = NULL;
const char* mode_fopen = NULL;
}
-uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void* buf, uLong size)
+uLong ZCALLBACK fread_file_func (voidpf /* opaque */, voidpf stream, void* buf, uLong size)
{
uLong ret;
ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
}
-uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void* buf, uLong size)
+uLong ZCALLBACK fwrite_file_func (voidpf /* opaque */, voidpf stream, const void* buf, uLong size)
{
uLong ret;
ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
return ret;
}
-long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
+long ZCALLBACK ftell_file_func (voidpf /* opaque */, voidpf stream)
{
long ret;
ret = ftell((FILE *)stream);
return ret;
}
-long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
+long ZCALLBACK fseek_file_func (voidpf /* opaque */, voidpf stream, uLong offset, int origin)
{
int fseek_origin=0;
long ret;
return ret;
}
-int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
+int ZCALLBACK fclose_file_func (voidpf /* opaque */, voidpf stream)
{
int ret;
ret = fclose((FILE *)stream);
return ret;
}
-int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
+int ZCALLBACK ferror_file_func (voidpf /* opaque */, voidpf stream)
{
int ret;
ret = ferror((FILE *)stream);
ll->first_block = ll->last_block = NULL;
}
+#if 0
local void free_linkedlist(linkedlist_data* ll)
{
free_datablock(ll->first_block);
ll->first_block = ll->last_block = NULL;
}
-
+#endif
local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len)
{
/****************************************************************************/
-local uLong ziplocal_TmzDateToDosDate(const tm_zip* ptm, uLong dosDate)
+local uLong ziplocal_TmzDateToDosDate(const tm_zip* ptm, uLong /* dosDate */)
{
uLong year = (uLong)ptm->tm_year;
if (year>1980)
filename : the filename of the file where date/time must be modified
dosdate : the new date at the MSDos format (4 bytes)
tmu_date : the SAME new date at the tm_unz format */
-void change_file_date(const char * filename, uLong dosdate, tm_unz tmu_date)
+void change_file_date(const char * filename, uLong /* dosdate */, tm_unz tmu_date)
{
#ifdef WIN32
HANDLE hFile;
int do_extract_currentfile(unzFile uf,
const int * popt_extract_without_path,
- int * popt_overwrite,
+ int * /* popt_overwrite */,
const char * password,
const char * dirname)
{