IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2016, 11:34:48 AM (10 years ago)
Author:
eugene
Message:

list unused parameters; replace old signal code with SetInterrupt, ClearInterrupt; fix unsigned / signed int inconsistencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/opihi/dvo/imextract.c

    r37807 r39419  
    44 
    55  off_t i, j, Nimage;
    6   int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
     6  int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Nstack;
    77  char **cstack, name[1024];
    8   void *Signal;
    98
    109  Vector **vec;
     
    5756
    5857  // parse the remainder of the line as a boolean math expression
     58  unsigned int Ncstack;
    5959  cstack = isolate_elements (argc-next, &argv[next], &Ncstack);
    6060 
     
    9797
    9898  // grab data from all selected sky regions
    99   Signal = signal (SIGINT, handle_interrupt);
    100   interrupt = FALSE;
     99  struct sigaction *old_sigaction = SetInterrupt();
    101100  for (j = 0; (j < Nimage) && !interrupt; j++) {
    102101
     
    128127    }
    129128  }
    130   signal (SIGINT, Signal);
    131   interrupt = FALSE;
     129  ClearInterrupt (old_sigaction);
     130
    132131  for (n = 0; n < Nreturn; n++) {
    133132    vec[n][0].Nelements = Npts;
Note: See TracChangeset for help on using the changeset viewer.