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/avextract.c

    r39360 r39419  
    44 
    55  off_t i, j, n, m;
    6   int N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
     6  int N, Npts, NPTS, last, next, state, Nfields, Nreturn, Nstack;
    77  int Nsecfilt, VERBOSE;
    88  char **cstack, name[1024];
     9  unsigned int Ncstack;
    910
    1011  Catalog catalog;
     
    169170
    170171  // grab data from all selected sky regions
    171   void *Signal = signal (SIGINT, handle_interrupt);
    172   interrupt = FALSE;
     172  struct sigaction *old_sigaction = SetInterrupt();
    173173  for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) {
    174174
     
    254254    dvo_catalog_free (&catalog);
    255255  }
    256   signal (SIGINT, Signal);
    257   interrupt = FALSE;
     256  ClearInterrupt (old_sigaction);
     257
    258258  for (n = 0; n < Nreturn; n++) {
    259259    ResetVector (vec[n], fields[n].type, Npts);
Note: See TracChangeset for help on using the changeset viewer.