ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/cdbfasta/gcdbz.cpp
(Generate patch)
# Line 67 | Line 67
67   if ((err !=Z_OK && err!=Z_STREAM_END) || zsize<=0)
68         GError("GCdbz error: deflate 1st record failed! (err=%d)\n", err);
69   //now write the header and the dummy record
70 <     //in case this was not done before:
71 < gcvt_uint=(endian_test())? &uint32_sun : &uint32_x86;
70 > //in case this was not done before:
71 > gcvt_endian_setup();
72 > //gcvt_uint=(endian_test())? &uint32_sun : &uint32_x86;
73   uint32 zfv = gcvt_uint(&zsize);
74   if (fwrite(ztag, 1, 4, zf)<4 ||
75         fwrite(&zfv,1,sizeof(uint32), zf) < sizeof(uint32) ||
# Line 214 | Line 215
215   //returns: the number of bytes decompressed
216   int GCdbz::decompress(FILE* outf, int csize, int zfofs) {
217   if (zfofs>=0) {
218 <    if (fseek(zf, zfofs, 0))
219 <      GError("GCdbz::decompress: error fseek() to %d\n", zfofs);
218 >    if (fseeko(zf, zfofs, 0))
219 >      GError("GCdbz::decompress: error fseeko() to %d\n", zfofs);
220      }
221    else
222       if (feof(zf)) return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines