IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/imreg/imregclient.c

    r27611 r34088  
    44int imregclient (char *fitsfile, char *statfile, char *datfile) {
    55
    6   int i, Nentry, Nslice, status, tmpint;
     6  int i, Nentry, Nslice, tmpint;
    77  FILE *f;
    88  RegImage *image;
     
    3535      exit (1);
    3636    }
    37     status = fscanf (f, "%d %f %f", &tmpint, &image[0].sky, &image[0].fwhm);
     37    if (fscanf (f, "%d %f %f", &tmpint, &image[0].sky, &image[0].fwhm) != 3) {
     38      fprintf (stderr, "error reading stats\n");
     39    }
    3840    image[0].ccd = tmpint;
    3941    fclose (f);
     
    4648      exit (1);
    4749    }
    48     status = 3;
    4950    Nslice = image[0].seq;
    5051    Nentry = Nslice + 1;
     
    5253    for (i = 0; i < Nentry; i++) {
    5354      image[i] = image[0];
    54       status = fscanf (f, "%d %f %f", &tmpint, &image[i].sky, &image[i].fwhm);
     55      if (fscanf (f, "%d %f %f", &tmpint, &image[i].sky, &image[i].fwhm) != 3) {
     56        fprintf (stderr, "error reading stats\n");
     57      }
    5558      image[i].seq = tmpint;
    5659      if (image[i].seq == Nslice) continue;
Note: See TracChangeset for help on using the changeset viewer.