Changeset 27435 for trunk/Ohana/src/opihi/cmd.data/read_vectors.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/cmd.data/read_vectors.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/20091201/Ohana merged eligible /branches/eam_branches/largefiles.20100314/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/cmd.data/read_vectors.c
r20936 r27435 57 57 return (FALSE); 58 58 } 59 fseek (f, 0, SEEK_SET);59 fseeko (f, 0LL, SEEK_SET); 60 60 61 61 Nvec = (argc - 1) / 2; … … 159 159 int read_table_vectors (int argc, char **argv, char *extname) { 160 160 161 int i, j, k, N, Nbytes, Nextend, Ny, Binary, vecType; 161 off_t Nbytes; 162 int i, j, k, N, Nextend, Ny, Binary, vecType; 162 163 char type[16], ID[80], *CCDKeyword; 163 164 FTable table; … … 184 185 185 186 if (f == NULL) ESCAPE ("file not found"); 186 fseek (f, 0, SEEK_SET);187 fseeko (f, 0LL, SEEK_SET); 187 188 table.header = &header; 188 189 … … 193 194 if (!gfits_load_header (f, &header)) ESCAPE ("error reading primary header for file"); 194 195 Nbytes = gfits_data_size (&header); 195 fseek (f, Nbytes, SEEK_CUR);196 fseeko (f, Nbytes, SEEK_CUR); 196 197 gfits_free_header (&header); 197 198 … … 200 201 Nbytes = gfits_data_size (&header); 201 202 /* skip the prior data buffers */ 202 fseek (f, Nbytes, SEEK_CUR);203 fseeko (f, Nbytes, SEEK_CUR); 203 204 gfits_free_header (&header); 204 205 } … … 215 216 216 217 while (1) { 217 if (!gfits_load_header (f, &header)) ESCAPE ("extensio not found in file");218 if (!gfits_load_header (f, &header)) ESCAPE ("extension not found in file"); 218 219 Nbytes = gfits_data_size (&header); 219 220 220 221 if (!gfits_scan (&header, CCDKeyword, "%s", 1, ID)) { 221 fseek (f, Nbytes, SEEK_CUR);222 fseeko (f, Nbytes, SEEK_CUR); 222 223 gfits_free_header (&header); 223 224 continue; 224 225 } 225 226 if (strcmp (ID, extname)) { 226 fseek (f, Nbytes, SEEK_CUR);227 fseeko (f, Nbytes, SEEK_CUR); 227 228 gfits_free_header (&header); 228 229 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
