IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2009, 10:43:26 AM (17 years ago)
Author:
eugene
Message:

lots of very minor API mods to satisfy some pickier compilers (supply void to prototypes for argument-less functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/dbExtractAverages.c

    r20936 r21153  
    152152          break;
    153153        case MAG_CHISQ:
    154           // GetPhotcodeEquivCodebyCode (field->photcode)
    155154          value.Flt = PhotXm (field->photcode, average, secfilt);
    156155          break;
    157156        case MAG_ERR:
    158           // GetPhotcodeEquivCodebyCode (field->photcode)
    159157          if ((field->photcode->type == PHOT_REF) || (field->photcode->type == PHOT_DEP)) {
    160158            for (i = 0; i < average[0].Nmeasure; i++) {
     
    167165          }
    168166          break;
     167        case MAG_PHOT_FLAGS:
     168          if ((field->photcode->type == PHOT_REF) || (field->photcode->type == PHOT_DEP)) {
     169            for (i = 0; i < average[0].Nmeasure; i++) {
     170              if (field->photcode->code != measure[i].photcode) continue;
     171              value.Int = measure[i].photFlags;
     172              break;
     173            }
     174          } else {
     175            value.Int = 0;
     176          }
     177          break;
    169178        case MAG_NCODE:
    170179          // XXX push these into dvo_photcode_ops APIs
Note: See TracChangeset for help on using the changeset viewer.