IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25707


Ignore:
Timestamp:
Oct 1, 2009, 8:12:05 AM (17 years ago)
Author:
bills
Message:

if no matches are found return a specific error code PSTAMP_NO_OVERLAP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/dvoImagesAtCoords.c

    r25208 r25707  
    11# include "dvoImagesAtCoords.h"
     2
     3// We'd like to do this but since pstamp gets built later this won't work
     4// so just redefine the macro
     5// # include "pstamp.h"
     6#define PSTAMP_NO_OVERLAP 28
    27
    38static int readPoints(char *filename, Point **pointsOut);
     
    1924  Npoints = readPoints(argv[1], &points);
    2025  if (!Npoints) {
    21     exit(0);
     26    exit(1);
    2227  }
    2328
     
    4954  if (MatchCoords (dbImages, NdbImages, points, Npoints)) {
    5055    ListImagesAtCoords(dbImages, points, Npoints);
     56    exit(0);
     57  } else {
     58    exit(PSTAMP_NO_OVERLAP);
    5159  }
    52   // XXX: should we exit with nonzero status if no matches were found?
    53   exit (0);
    5460}
    5561
Note: See TracChangeset for help on using the changeset viewer.