IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2018, 8:58:31 PM (8 years ago)
Author:
eugene
Message:

add snprintf_nowarn function to avoid compiler warnings from desired snprint truncations

Location:
trunk/Ohana/src/addstar/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/loadICRF_save_remote.c

    r38441 r40549  
    88  int TIME = time(NULL);
    99  int PID = getpid();
    10   snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     10  snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
    1111
    1212  // if this region is a parallel thing, save and launch remote
  • trunk/Ohana/src/addstar/src/loadstarpar_save_remote.c

    r38986 r40549  
    88  int TIME = time(NULL);
    99  int PID = getpid();
    10   snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     10  snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
    1111
    1212  // if this region is a parallel thing, save and launch remote
  • trunk/Ohana/src/addstar/src/setobjflags_save_remote.c

    r39535 r40549  
    88  int TIME = time(NULL);
    99  int PID = getpid();
    10   snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     10  snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
    1111
    1212  // if this region is a parallel thing, save and launch remote
Note: See TracChangeset for help on using the changeset viewer.