IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29754


Ignore:
Timestamp:
Nov 10, 2010, 5:38:10 PM (15 years ago)
Author:
heather
Message:

This fixes Shutdown related segfaults.

Location:
trunk/Ohana/src/relphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/SetSignals.c

    r13322 r29754  
    1515      return;
    1616    }
    17     Shutdown ("halted by signal (trapped)");
     17    Shutdown ("%s","halted by signal (trapped)");
    1818}   
    1919
    2020void SetProtect (int mode) {
    2121  Protect = mode;
    22   if (Trapped && !Protect) Shutdown ("halted by signal (protect)");
     22  if (Trapped && !Protect) Shutdown ("%s","halted by signal (protect)");
    2323}
    2424
  • trunk/Ohana/src/relphot/src/load_catalogs.c

    r28241 r29754  
    4747
    4848  fprintf (stderr, "using %d of %d stars (%d of %d measurements)\n", Nstar, Nstar_total, Nmeas, Nmeas_total);
    49   if (Nstar < 1) {
    50       Shutdown ("ERROR: no stars match the minimum requirements; exiting\n");
    51   }
     49  if (Nstar < 1) Shutdown ("%s", "ERROR: no stars match the minimum requirements; exiting \n");
     50   
    5251
    5352  // XXX consider only returning the populated catalogs
Note: See TracChangeset for help on using the changeset viewer.