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/cmd.data/cursor.c

    r33662 r39419  
    66  int i, N, kapa, VERBOSE;
    77  double X, Y, R, D, Z;
    8   void *oldsignal;
    98
    109  // XXX need to be able to specify graph vs image coords
     
    3837  KiiCursorOn (kapa);
    3938 
    40   oldsignal = signal (SIGINT, handle_interrupt);
    41   interrupt = FALSE;
    42 
     39  struct sigaction *old_sigaction = SetInterrupt();
    4340  for (i = 0; ((i < N) || (N == 0)) && !interrupt; i++) {
    4441
     
    6259    if (!strcasecmp (key, "Q")) break;
    6360  }
     61  ClearInterrupt (old_sigaction);
    6462
    65   signal (SIGINT, oldsignal);
    6663  KiiCursorOff (kapa);
    6764  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.