Changeset 95239 in vbox for trunk/src/libs/zlib-1.2.12/contrib/minizip/ioapi.c
- Timestamp:
- Jun 9, 2022 9:09:44 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151769
- Location:
- trunk/src/libs/zlib-1.2.12
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/zlib-1.2.12
- Property svn:mergeinfo
-
old new 20 20 /branches/dsen/gui3/src/libs/zlib-1.2.11:79645-79692 21 21 /trunk/src/src/libs/zlib-1.2.11:92342 22 /vendor/zlib/1.2.12:151751 23 /vendor/zlib/current:150724-151750
-
- Property svn:mergeinfo
-
trunk/src/libs/zlib-1.2.12/contrib/minizip/ioapi.c
r76163 r95239 59 59 else 60 60 { 61 uLong tell_uLong = ( *(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream);61 uLong tell_uLong = (uLong)(*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream); 62 62 if ((tell_uLong) == MAXU32) 63 63 return (ZPOS64_T)-1; … … 95 95 static voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char* filename, int mode) 96 96 { 97 (void)opaque; 97 98 FILE* file = NULL; 98 99 const char* mode_fopen = NULL; … … 113 114 static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename, int mode) 114 115 { 116 (void)opaque; 115 117 FILE* file = NULL; 116 118 const char* mode_fopen = NULL; … … 132 134 static uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void* buf, uLong size) 133 135 { 136 (void)opaque; 134 137 uLong ret; 135 138 ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream); … … 139 142 static uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void* buf, uLong size) 140 143 { 144 (void)opaque; 141 145 uLong ret; 142 146 ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream); … … 146 150 static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream) 147 151 { 152 (void)opaque; 148 153 long ret; 149 154 ret = ftell((FILE *)stream); … … 154 159 static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream) 155 160 { 161 (void)opaque; 156 162 ZPOS64_T ret; 157 ret = FTELLO_FUNC((FILE *)stream);163 ret = (ZPOS64_T)FTELLO_FUNC((FILE *)stream); 158 164 return ret; 159 165 } … … 161 167 static long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin) 162 168 { 169 (void)opaque; 163 170 int fseek_origin=0; 164 171 long ret; … … 177 184 } 178 185 ret = 0; 179 if (fseek((FILE *)stream, offset, fseek_origin) != 0)186 if (fseek((FILE *)stream, (long)offset, fseek_origin) != 0) 180 187 ret = -1; 181 188 return ret; … … 184 191 static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin) 185 192 { 193 (void)opaque; 186 194 int fseek_origin=0; 187 195 long ret; … … 201 209 ret = 0; 202 210 203 if(FSEEKO_FUNC((FILE *)stream, offset, fseek_origin) != 0)211 if(FSEEKO_FUNC((FILE *)stream, (long)offset, fseek_origin) != 0) 204 212 ret = -1; 205 213 … … 210 218 static int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream) 211 219 { 220 (void)opaque; 212 221 int ret; 213 222 ret = fclose((FILE *)stream); … … 217 226 static int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream) 218 227 { 228 (void)opaque; 219 229 int ret; 220 230 ret = ferror((FILE *)stream);
Note:
See TracChangeset
for help on using the changeset viewer.