Changeset 40549
- Timestamp:
- Oct 20, 2018, 8:58:31 PM (8 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 24 edited
-
addstar/src/loadICRF_save_remote.c (modified) (1 diff)
-
addstar/src/loadstarpar_save_remote.c (modified) (1 diff)
-
addstar/src/setobjflags_save_remote.c (modified) (1 diff)
-
checkastro/src/load_catalogs.c (modified) (1 diff)
-
delstar/src/delete_fix_LAP.c (modified) (1 diff)
-
delstar/src/delete_fix_LAP_edges.c (modified) (1 diff)
-
delstar/src/delete_fix_LAP_edges_delete.c (modified) (1 diff)
-
dvopsps/src/insert_detections_dvopsps.c (modified) (1 diff)
-
fakeastro/src/save_fakestars.c (modified) (1 diff)
-
gastro2/src/lumfunc.c (modified) (1 diff)
-
libdvo/src/convert.c (modified) (1 diff)
-
libfits/matrix/F_uncompress_M.c (modified) (4 diffs)
-
libohana/include/ohana.h (modified) (2 diffs)
-
libohana/src/string.c (modified) (1 diff)
-
opihi/cmd.basic/module.c (modified) (1 diff)
-
opihi/cmd.data/imspline_apply.c (modified) (1 diff)
-
opihi/cmd.data/imspline_construct.c (modified) (1 diff)
-
opihi/dvo/dvo_host_utils.c (modified) (1 diff)
-
relastro/src/load_catalogs.c (modified) (1 diff)
-
relphot/src/load_catalogs.c (modified) (1 diff)
-
uniphot/src/load_zpt_table.c (modified) (2 diffs)
-
uniphot/src/match_camcorr_to_images.c (modified) (1 diff)
-
uniphot/src/update_dvo_fiximids.c (modified) (1 diff)
-
uniphot/src/update_dvo_fixstkids.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/loadICRF_save_remote.c
r38441 r40549 8 8 int TIME = time(NULL); 9 9 int PID = getpid(); 10 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);10 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 11 11 12 12 // if this region is a parallel thing, save and launch remote -
trunk/Ohana/src/addstar/src/loadstarpar_save_remote.c
r38986 r40549 8 8 int TIME = time(NULL); 9 9 int PID = getpid(); 10 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);10 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 11 11 12 12 // if this region is a parallel thing, save and launch remote -
trunk/Ohana/src/addstar/src/setobjflags_save_remote.c
r39535 r40549 8 8 int TIME = time(NULL); 9 9 int PID = getpid(); 10 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);10 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 11 11 12 12 // if this region is a parallel thing, save and launch remote -
trunk/Ohana/src/checkastro/src/load_catalogs.c
r38471 r40549 102 102 int TIME = time(NULL); 103 103 int PID = getpid(); 104 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);104 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 105 105 106 106 // load the list of hosts -
trunk/Ohana/src/delstar/src/delete_fix_LAP.c
r39457 r40549 88 88 int TIME = time(NULL); 89 89 int PID = getpid(); 90 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);90 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 91 91 92 92 // write out the subset table of image information -
trunk/Ohana/src/delstar/src/delete_fix_LAP_edges.c
r38471 r40549 87 87 int TIME = time(NULL); 88 88 int PID = getpid(); 89 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);89 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 90 90 91 91 // launch the delstar_client jobs to the parallel hosts -
trunk/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c
r38986 r40549 138 138 int TIME = time(NULL); 139 139 int PID = getpid(); 140 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);140 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 141 141 142 142 // launch the delstar_client jobs to the parallel hosts -
trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps.c
r38471 r40549 121 121 int TIME = time(NULL); 122 122 int PID = getpid(); 123 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);123 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 124 124 125 125 int i; -
trunk/Ohana/src/fakeastro/src/save_fakestars.c
r38441 r40549 7 7 int TIME = time(NULL); 8 8 int PID = getpid(); 9 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);9 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 10 10 11 11 // if this region is a parallel thing, save and launch remote -
trunk/Ohana/src/gastro2/src/lumfunc.c
r27491 r40549 16 16 lum[0].dNdM = lum[0].Mo = 0; 17 17 18 bzero (mbin, NMBIN * sizeof (double)); 18 // use 'explicit_bzero' to avoid optimizations compile warnings 19 explicit_bzero (mbin, NMBIN * sizeof (double)); 19 20 20 21 /* sum histogram */ -
trunk/Ohana/src/libdvo/src/convert.c
r39523 r40549 224 224 225 225 if (deg < 0) { 226 snprintf (line, 16, "-%02d:%04.1f", abs(hr), mn);226 snprintf_nowarn (line, 16, "-%02d:%04.1f", abs(hr), mn); 227 227 } else { 228 snprintf (line, 16, "+%02d:%04.1f", hr, mn);228 snprintf_nowarn (line, 16, "+%02d:%04.1f", hr, mn); 229 229 } 230 230 return (line); -
trunk/Ohana/src/libfits/matrix/F_uncompress_M.c
r39457 r40549 98 98 gfits_delete (header, "ZTILE1", 1); 99 99 for (axis = 1; axis < header->Naxes; axis++) { 100 snprintf (key, 10, "ZTILE%d", axis + 1); 100 snprintf (key, 10, "ZTILE%d", axis + 1); 101 101 if (!gfits_scan (header, key, "%lu", 1, &ztile[axis])) ESCAPE; 102 102 gfits_delete (header, key, 1); … … 110 110 ALLOCATE (optvalue, char *, NOPTIONS); 111 111 for (Noptions = 0; TRUE; Noptions++) { 112 snprintf (key, 10, "ZNAME%d", Noptions + 1);112 snprintf_nowarn (key, 10, "ZNAME%d", Noptions + 1); 113 113 if (!gfits_scan (header, key, "%s", 1, word)) break; 114 114 gfits_delete (header, key, 1); 115 115 optname[Noptions] = strcreate (word); 116 116 117 snprintf (key, 10, "ZVAL%d", Noptions + 1);117 snprintf_nowarn (key, 10, "ZVAL%d", Noptions + 1); 118 118 if (!gfits_scan (header, key, "%s", 1, word)) ESCAPE; 119 119 gfits_delete (header, key, 1); … … 204 204 int colnum; 205 205 for (colnum = 1; TRUE; colnum++) { 206 snprintf (key, 10, "TTYPE%d", colnum);206 snprintf_nowarn (key, 10, "TTYPE%d", colnum); 207 207 if (!gfits_scan (ftable->header, key, "%s", 1, word)) ESCAPE; 208 208 if (!strcmp (word, "COMPRESSED_DATA")) break; … … 212 212 if (!gfits_varlength_column_define (ftable, &zdef, zcol)) ESCAPE; 213 213 gfits_delete (header, "TFIELDS", 1); 214 snprintf (key, 10, "TTYPE"OFF_T_FMT, zcol);214 snprintf_nowarn (key, 10, "TTYPE"OFF_T_FMT, zcol); 215 215 gfits_delete (header, key, 1); 216 snprintf (key, 10, "TFORM"OFF_T_FMT, zcol);216 snprintf_nowarn (key, 10, "TFORM"OFF_T_FMT, zcol); 217 217 gfits_delete (header, key, 1); 218 218 -
trunk/Ohana/src/libohana/include/ohana.h
r40291 r40549 79 79 struct timeval startTimer, stopTimer; \ 80 80 gettimeofday (&startTimer, (void *) NULL); 81 82 // several snprintf statements below my truncate their output 83 // gcc (since 8.1) warns if the output may be truncated. 84 // If we do not care, the following snprintf_nowarn can 85 // replace these snprintf calls. (myNOOP in string.c) 86 87 # define snprintf_nowarn(...) (snprintf(__VA_ARGS__) < 0 ? myNOOP() : 0) 81 88 82 89 #ifdef __GNUC__ … … 314 321 char *getword PROTO((char *string)); 315 322 char *skipword PROTO((char *string)); 323 void myNOOP PROTO((void)); 316 324 317 325 /* in findexec.c */ -
trunk/Ohana/src/libohana/src/string.c
r39407 r40549 1 1 # include <ohana.h> 2 3 // several snprintf statements below my truncate their output 4 // gcc (since 8.1) warns if the output may be truncated. 5 // the following NOOP function is used to fool the compiler 6 // see snprintf_nowarn in ohana.h 7 void myNOOP (void) { } 2 8 3 9 /* Strip WHITESPACE from the start and end of STRING. */ -
trunk/Ohana/src/opihi/cmd.basic/module.c
r12332 r40549 23 23 /* search for requested file in MODULES:0 - MODULES:n */ 24 24 for (i = 0; i < Nmodules; i++) { 25 snprintf (modname, 16, "MODULES:%d", i);25 snprintf_nowarn (modname, 16, "MODULES:%d", i); 26 26 modpath = get_variable (modname); 27 27 if (modpath == NULL) { -
trunk/Ohana/src/opihi/cmd.data/imspline_apply.c
r34584 r40549 47 47 gfits_create_matrix (&out[0].header, &out[0].matrix); 48 48 if ((y1[0].file[0] != '*') && (y1[0].file[0] != '(')) { 49 s printf (out[0].file, "*%s", y1[0].file);49 snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "*%s", y1[0].file); 50 50 } else { 51 s printf (out[0].file, "%s", y1[0].file);51 snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "%s", y1[0].file); 52 52 } 53 53 -
trunk/Ohana/src/opihi/cmd.data/imspline_construct.c
r34584 r40549 19 19 free (out[0].matrix.buffer); 20 20 if ((in[0].file[0] != '*') && (in[0].file[0] != '(')) { 21 s printf (out[0].file, "*%s", in[0].file);21 snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "*%s", in[0].file); 22 22 } else { 23 s printf (out[0].file, "%s", in[0].file);23 snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "%s", in[0].file); 24 24 } 25 25 out[0].bitpix = in[0].bitpix; -
trunk/Ohana/src/opihi/dvo/dvo_host_utils.c
r40408 r40549 13 13 int TIME = time(NULL); 14 14 int PID = getpid(); 15 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);15 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 16 16 17 17 // write the dvo comment (host independent) -
trunk/Ohana/src/relastro/src/load_catalogs.c
r39926 r40549 144 144 145 145 if (PARALLEL_MANUAL && MANUAL_UNIQUER) { 146 snprintf (uniquer, 12, "%11s", MANUAL_UNIQUER);146 snprintf_nowarn (uniquer, 12, "%11s", MANUAL_UNIQUER); 147 147 } else { 148 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);148 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 149 149 } 150 150 -
trunk/Ohana/src/relphot/src/load_catalogs.c
r39641 r40549 117 117 118 118 if (PARALLEL_MANUAL && MANUAL_UNIQUER) { 119 snprintf (uniquer, 12, "%11s", MANUAL_UNIQUER);119 snprintf_nowarn (uniquer, 12, "%11s", MANUAL_UNIQUER); 120 120 } else { 121 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);121 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 122 122 } 123 123 -
trunk/Ohana/src/uniphot/src/load_zpt_table.c
r39272 r40549 180 180 char name[9]; 181 181 // snprintf (name, 9, "TS0_%04d", i); 182 snprintf (name, 9, "S0_MJD%d", i);182 snprintf_nowarn (name, 9, "S0_MJD%d", i); 183 183 if (!gfits_scan (&header, name, "%lf", 1, &mjdstart)) { 184 184 fprintf (stderr, "cannot find %s in header of %s\n", name, filename); … … 188 188 189 189 // snprintf (name, 9, "TS1_%04d", i); 190 snprintf (name, 9, "S1_MJD%d", i);190 snprintf_nowarn (name, 9, "S1_MJD%d", i); 191 191 if (!gfits_scan (&header, name, "%lf", 1, &mjdstop)) { 192 192 fprintf (stderr, "cannot find %s in header of %s\n", name, filename); -
trunk/Ohana/src/uniphot/src/match_camcorr_to_images.c
r40488 r40549 44 44 if (image[i].tzero > camcorr->tstop[j]) continue; 45 45 46 int seq ;46 int seq = 0; 47 47 int photcode = image[i].photcode; 48 48 -
trunk/Ohana/src/uniphot/src/update_dvo_fiximids.c
r38986 r40549 86 86 int TIME = time(NULL); 87 87 int PID = getpid(); 88 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);88 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 89 89 90 90 // write out the subset table of image information -
trunk/Ohana/src/uniphot/src/update_dvo_fixstkids.c
r38986 r40549 86 86 int TIME = time(NULL); 87 87 int PID = getpid(); 88 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);88 snprintf_nowarn (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 89 89 90 90 // write out the subset table of image information
Note:
See TracChangeset
for help on using the changeset viewer.
