Changeset 28241 for trunk/Ohana/src/kapa2/src/LoadPicture.c
- Timestamp:
- Jun 6, 2010, 4:06:31 PM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/kapa2/src/LoadPicture.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/czw_branch/20100427/Ohana merged eligible /branches/eam_branches/Ohana.20100606 merged eligible /branches/haf_branches/ipp.20100512/Ohana merged eligible /branches/pap/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/kapa2/src/LoadPicture.c
r27435 r28241 32 32 gfits_init_header (&header); 33 33 header.Naxes = 2; 34 KiiScanMessage (sock, "%lld %lld", (long long *) &header.Naxis[0], (long long *)&header.Naxis[1]);34 KiiScanMessage (sock, OFF_T_FMT" "OFF_T_FMT, &header.Naxis[0], &header.Naxis[1]); 35 35 36 36 // internal image are 32 bit floats; sender must send in this format … … 41 41 42 42 KiiScanMessage (sock, "%lf %lf %s %s", &image[0].image[0].zero, &image[0].image[0].range, image[0].image[0].name, image[0].image[0].file); 43 KiiScanMessage (sock, "%lf %lf %lld", &image[0].image[0].min, &image[0].image[0].max, (long long *)&header.datasize);43 KiiScanMessage (sock, "%lf %lf "OFF_T_FMT, &image[0].image[0].min, &image[0].image[0].max, &header.datasize); 44 44 KiiScanMessage (sock, "%lf %f %f %f %f", &image[0].image[0].coords.crval1, &image[0].image[0].coords.crpix1, &image[0].image[0].coords.cdelt1, &image[0].image[0].coords.pc1_1, &image[0].image[0].coords.pc1_2); 45 45 KiiScanMessage (sock, "%lf %f %f %f %f", &image[0].image[0].coords.crval2, &image[0].image[0].coords.crpix2, &image[0].image[0].coords.cdelt2, &image[0].image[0].coords.pc2_1, &image[0].image[0].coords.pc2_2); … … 85 85 fcntl (sock, F_SETFL, !O_NONBLOCK); 86 86 87 if (DEBUG) fprintf (stderr, "read %lld bytes\n", (long long)image[0].image[0].matrix.datasize);87 if (DEBUG) fprintf (stderr, "read "OFF_T_FMT" bytes\n", image[0].image[0].matrix.datasize); 88 88 /* it it not obvious this condition should kill kapa, but ... */ 89 89 if (image[0].image[0].matrix.datasize != header.datasize) { 90 fprintf (stderr, "error: expected %lld bytes, but got only %lld\n", (long long) header.datasize, (long long)image[0].image[0].matrix.datasize);90 fprintf (stderr, "error: expected "OFF_T_FMT" bytes, but got only "OFF_T_FMT"\n", header.datasize, image[0].image[0].matrix.datasize); 91 91 return (FALSE); 92 92 }
Note:
See TracChangeset
for help on using the changeset viewer.
