Changeset 4772
- Timestamp:
- Aug 15, 2005, 3:32:18 PM (21 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 22 edited
-
addstar/doc/Changes.txt (modified) (1 diff)
-
addstar/src/get2mass.c (modified) (2 diffs)
-
addstar/src/get2mass_as.c (modified) (2 diffs)
-
elixir/include/controller.h (modified) (1 diff)
-
elixir/src/DefineProcesses.c (modified) (5 diffs)
-
elixir/src/MachineOps.c (modified) (2 diffs)
-
elixir/src/MsgOps.c (modified) (3 diffs)
-
gastro/src/plotstuff.c (modified) (3 diffs)
-
gastro2/src/plotstuff.c (modified) (3 diffs)
-
gastro2/src/rfits.c (modified) (1 diff)
-
imregister/imphot/args.c (modified) (1 diff)
-
imregister/src/imstatreg.c (modified) (1 diff)
-
kapa/graph/LoadObject.c (modified) (1 diff)
-
libautocode/def/autocode.h (modified) (1 diff)
-
misc/src/applyscat.c (modified) (1 diff)
-
misc/src/ftable.c (modified) (1 diff)
-
misc/src/mkfringetable.c (modified) (2 diffs)
-
mosastro/include/mosastro.h (modified) (1 diff)
-
mosastro/src/match.c (modified) (1 diff)
-
opihi/pantasks/CheckSystem.c (modified) (1 diff)
-
opihi/pclient/ChildOps.c (modified) (1 diff)
-
opihi/pcontrol/CheckHost.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/doc/Changes.txt
r4468 r4772 1 2 2005.08.15: 3 cleanup of the minor Wall,Werror messages 1 4 2 5 2005.02.24 : I am adding the mosaic two-level astrometry information to the Image table. -
trunk/Ohana/src/addstar/src/get2mass.c
r4299 r4772 4 4 Stars *get2mass (GSCRegion *patch, int *NSTARS, int mode) { 5 5 6 char accel[64],*path;6 char *path; 7 7 int i, Nstars, Nrefcat, Nregions; 8 8 Stars *stars; … … 55 55 GSCRegion *get2mass_acc (GSCRegion *patch, int *nregions, char *path, char *accel) { 56 56 57 int Nregions, NREGIONS , Nrec;57 int Nregions, NREGIONS; 58 58 GSCRegion *regions; 59 59 char accelfile[1024], line[256], filename[128]; -
trunk/Ohana/src/addstar/src/get2mass_as.c
r4538 r4772 15 15 Stars *get2mass_AS_data (GSCRegion *region, GSCRegion *patch, int *nstars) { 16 16 17 int FilterSkip, TimeSkip , Np;18 int i, Nstars, NSTARS, Nbyte, Nline, Nextra, code, Qentry;17 int FilterSkip, TimeSkip; 18 int Nstars, NSTARS, Nbyte, Nextra, code, Qentry; 19 19 Stars *stars; 20 20 gzFile gf; 21 21 char qc; 22 22 char *buffer, *filename; 23 char *p, *q, *ptr, *end, *tmp; 24 char line[1000]; 25 double RA, DEC, J, H, K, dJ, dH, dK, M, dM; 23 char *p, *q, *ptr, *tmp; 24 double RA, DEC, M, dM; 26 25 double RA0, RA1, DEC0, DEC1; 27 26 e_time time; … … 130 129 if (VERBOSE) fprintf (stderr, "\n"); 131 130 132 finished:133 131 gzclose (gf); 134 132 free (buffer); -
trunk/Ohana/src/elixir/include/controller.h
r2428 r4772 170 170 int memstr (char *m1, char *m2, int n); 171 171 int rconnect (char *hostname, char *command, int *rsock, int *wsock); 172 void GetConfig (char *config, char *field, char *format, int N, void *ptr); -
trunk/Ohana/src/elixir/src/DefineProcesses.c
r2428 r4772 3 3 Process **DefineProcesses (Process *global, int *nprocess, char *config) { 4 4 5 int i, j , status;5 int i, j; 6 6 char procname[256], entry[256], field[256]; 7 7 Process **process; … … 22 22 ALLOCATE (global[0].argv[7], char, 256); 23 23 24 status = (int) ScanConfig (config, "global.Nargs", "%d", 0, &global[0].argc); 25 status &= (int) ScanConfig (config, "global.success", "%s", 0, global[0].argv[0]); 26 status &= (int) ScanConfig (config, "global.failure", "%s", 0, global[0].argv[1]); 27 status &= (int) ScanConfig (config, "global.pending", "%s", 0, global[0].argv[2]); 28 status &= (int) ScanConfig (config, "global.logfile", "%s", 0, global[0].argv[3]); 29 status &= (int) ScanConfig (config, "global.source", "%s", 0, global[0].argv[4]); 30 status &= (int) ScanConfig (config, "global.msg", "%s", 0, global[0].argv[5]); 31 status &= (int) ScanConfig (config, "global.end", "%s", 0, global[0].argv[6]); 32 status &= (int) ScanConfig (config, "global.pid", "%s", 0, global[0].argv[7]); 33 if (!status) { 34 fprintf (stderr, "missing global entry from config\n"); 35 fprintf (stderr, "global.Nargs: %d\n", global[0].argc); 36 fprintf (stderr, "global.argv[0]: %s\n", global[0].argv[0]); 37 fprintf (stderr, "global.argv[1]: %s\n", global[0].argv[1]); 38 fprintf (stderr, "global.argv[2]: %s\n", global[0].argv[2]); 39 fprintf (stderr, "global.argv[3]: %s\n", global[0].argv[3]); 40 fprintf (stderr, "global.argv[4]: %s\n", global[0].argv[4]); 41 fprintf (stderr, "global.argv[5]: %s\n", global[0].argv[5]); 42 fprintf (stderr, "global.argv[6]: %s\n", global[0].argv[6]); 43 fprintf (stderr, "global.argv[7]: %s\n", global[0].argv[7]); 44 Shutdown (1); 45 } 24 GetConfig (config, "global.Nargs", "%d", 0, &global[0].argc); 25 GetConfig (config, "global.success", "%s", 0, global[0].argv[0]); 26 GetConfig (config, "global.failure", "%s", 0, global[0].argv[1]); 27 GetConfig (config, "global.pending", "%s", 0, global[0].argv[2]); 28 GetConfig (config, "global.logfile", "%s", 0, global[0].argv[3]); 29 GetConfig (config, "global.source", "%s", 0, global[0].argv[4]); 30 GetConfig (config, "global.msg", "%s", 0, global[0].argv[5]); 31 GetConfig (config, "global.end", "%s", 0, global[0].argv[6]); 32 GetConfig (config, "global.pid", "%s", 0, global[0].argv[7]); 46 33 47 34 ScanConfig (config, "global.timeout", "%lf", 0, &timeout); … … 77 64 /* connect this process success queue */ 78 65 sprintf (field, "%s.success", process[i][0].name); 79 if (!ScanConfig (config, field, "%s", 0, entry)) { 80 fprintf (stderr, "missing process.success entry for %s\n", process[i][0].name); 81 Shutdown (1); 82 } 66 GetConfig (config, field, "%s", 0, entry); 83 67 if (!strcasecmp (entry, "global")) { 84 68 process[i][0].success = global[0].success; … … 101 85 /* connect this process failure queue */ 102 86 sprintf (field, "%s.failure", process[i][0].name); 103 if (!ScanConfig (config, field, "%s", 0, entry)) { 104 fprintf (stderr, "missing process.failure entry for %s\n", process[i][0].name); 105 Shutdown (1); 106 } 87 GetConfig (config, field, "%s", 0, entry); 107 88 if (!strcasecmp (entry, "global")) { 108 89 process[i][0].failure = global[0].failure; … … 141 122 142 123 } 124 125 void GetConfig (char *config, char *field, char *format, int N, void *ptr) { 126 127 char *status; 128 129 status = ScanConfig (config, field, format, N, ptr); 130 if (status == NULL) { 131 fprintf (stderr, "error in config, cannot find required field %s\n", field); 132 Shutdown (1); 133 } 134 return; 135 } -
trunk/Ohana/src/elixir/src/MachineOps.c
r3648 r4772 410 410 411 411 fprintf (stderr, "can't find this machine, process combination!\n"); 412 fprintf (stderr, "machine: % x, process: %x\n", (unsigned int) machine, (unsigned int) process);412 fprintf (stderr, "machine: %lx, process: %lx\n", (size_t) machine, (size_t) process); 413 413 return; 414 414 } … … 437 437 438 438 fprintf (stderr, "can't find an active process for this machine!\n"); 439 fprintf (stderr, "machine: % x\n", (unsigned int) machine);439 fprintf (stderr, "machine: %lx\n", (size_t) machine); 440 440 441 441 } -
trunk/Ohana/src/elixir/src/MsgOps.c
r3648 r4772 36 36 int nbytes, Nbytes, NBYTES; 37 37 char *buffer; 38 int fd,state, mode;38 int state, mode; 39 39 FILE *f; 40 40 … … 76 76 77 77 mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; 78 chmod (f , mode);78 chmod (fifo, mode); 79 79 fclearlockfile (fifo, f, LCK_XCLD, &state); 80 80 … … 91 91 int WriteMsg (char *fifo, char *message) { 92 92 93 int fd,state, mode;93 int state, mode; 94 94 FILE *f; 95 95 -
trunk/Ohana/src/gastro/src/plotstuff.c
r2435 r4772 62 62 write (Xgraph[N], "DBOX", 4); 63 63 sprintf (buffer, "%f %f %f %f ", graphmode[0].xmin, graphmode[0].xmax, graphmode[0].ymin, graphmode[0].ymax); 64 sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));64 sprintf (buffer2, "NBYTES: %6d ", (unsigned int) strlen (buffer)); 65 65 write (Xgraph[N], buffer2, 16); 66 66 write (Xgraph[N], buffer, strlen (buffer)); 67 67 68 68 sprintf (buffer, "%s %s %s", "2222", "2222", "2222"); 69 sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));69 sprintf (buffer2, "NBYTES: %6d ", (unsigned int) strlen (buffer)); 70 70 write (Xgraph[N], buffer2, 16); 71 71 write (Xgraph[N], buffer, strlen (buffer)); … … 97 97 graphmode[0].etype, graphmode[0].color, 98 98 graphmode[0].lweight, graphmode[0].size); 99 sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));99 sprintf (buffer2, "NBYTES: %6d ", (unsigned int) strlen (buffer)); 100 100 write (Xgraph[N], buffer2, 16); 101 101 write (Xgraph[N], buffer, strlen (buffer)); … … 104 104 graphmode[0].xmin, graphmode[0].xmax, 105 105 graphmode[0].ymin, graphmode[0].ymax); 106 sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));106 sprintf (buffer2, "NBYTES: %6d ", (unsigned int) strlen (buffer)); 107 107 write (Xgraph[N], buffer2, 16); 108 108 write (Xgraph[N], buffer, strlen (buffer)); -
trunk/Ohana/src/gastro2/src/plotstuff.c
r2442 r4772 62 62 write (Xgraph[N], "DBOX", 4); 63 63 sprintf (buffer, "%f %f %f %f", graphmode[0].xmin, graphmode[0].xmax, graphmode[0].ymin, graphmode[0].ymax); 64 sprintf (buffer2, "NBYTES: %6d", strlen (buffer));64 sprintf (buffer2, "NBYTES: %6d", (unsigned int) strlen (buffer)); 65 65 write (Xgraph[N], buffer2, 16); 66 66 write (Xgraph[N], buffer, strlen (buffer)); 67 67 68 68 sprintf (buffer, "%s %s %s", "2222", "2222", "2222"); 69 sprintf (buffer2, "NBYTES: %6d", strlen (buffer));69 sprintf (buffer2, "NBYTES: %6d", (unsigned int) strlen (buffer)); 70 70 write (Xgraph[N], buffer2, 16); 71 71 write (Xgraph[N], buffer, strlen (buffer)); … … 97 97 graphmode[0].etype, graphmode[0].ebar, graphmode[0].color, 98 98 graphmode[0].lweight, graphmode[0].size); 99 sprintf (buffer2, "NBYTES: %6d", strlen (buffer));99 sprintf (buffer2, "NBYTES: %6d", (unsigned int) strlen (buffer)); 100 100 write (Xgraph[N], buffer2, 16); 101 101 write (Xgraph[N], buffer, strlen (buffer)); … … 104 104 graphmode[0].xmin, graphmode[0].xmax, 105 105 graphmode[0].ymin, graphmode[0].ymax); 106 sprintf (buffer2, "NBYTES: %6d", strlen (buffer));106 sprintf (buffer2, "NBYTES: %6d", (unsigned int) strlen (buffer)); 107 107 write (Xgraph[N], buffer2, 16); 108 108 write (Xgraph[N], buffer, strlen (buffer)); -
trunk/Ohana/src/gastro2/src/rfits.c
r3520 r4772 4 4 5 5 int i, N, Nstars; 6 Matrix matrix;7 6 Header theader; 8 7 FTable table; -
trunk/Ohana/src/imregister/imphot/args.c
r4024 r4772 95 95 exit (1); 96 96 } 97 return (TRUE); 97 98 } -
trunk/Ohana/src/imregister/src/imstatreg.c
r3650 r4772 1 1 # include "imregister.h" 2 2 # include "imreg.h" 3 static char *version = "imstatreg $Revision: 3.1 3$";3 static char *version = "imstatreg $Revision: 3.14 $"; 4 4 5 5 int main (int argc, char **argv) { 6 6 7 int i, child , status;7 int i, child; 8 8 int *match, Nmatch, Nimage, Nsubset; 9 9 FILE *f; -
trunk/Ohana/src/kapa/graph/LoadObject.c
r4769 r4772 174 174 } 175 175 if (Ninpts != Npts*sizeof(float)) { 176 fprintf (stderr, "error: expected %d bytes, but got only %d\n", Ninpts, Npts*sizeof(float));176 fprintf (stderr, "error: expected %d bytes, but got only %d\n", Ninpts, (unsigned int)(Npts*sizeof(float))); 177 177 return (FALSE); 178 178 } -
trunk/Ohana/src/libautocode/def/autocode.h
r3515 r4772 4 4 $STRUCT *fits_table_get_$STRUCT (FTable *table, int *Ndata); 5 5 int fits_table_set_$STRUCT (FTable *ftable, $STRUCT *data, int Ndata); 6 int fits_table_mkheader_$STRUCT (Header *header); 6 7 int fits_convert_$STRUCT ($STRUCT *data, int size, int nitems); -
trunk/Ohana/src/misc/src/applyscat.c
r2417 r4772 1 1 # include <ohana.h> 2 # include <dvo.h> 2 3 # define BYTES_STAR 66 3 4 -
trunk/Ohana/src/misc/src/ftable.c
r2417 r4772 7 7 void list_extnames (char *file); 8 8 void print_layout (Header *header); 9 int ByteSwap (char *ptr, int size, int nitems, char *type); 9 10 int Binary; 10 11 -
trunk/Ohana/src/misc/src/mkfringetable.c
r2448 r4772 1 1 # include <ohana.h> 2 static char *version = "mkfringetable $Revision: 1. 3$";2 static char *version = "mkfringetable $Revision: 1.4 $"; 3 3 4 4 void get_version (int argc, char **argv, char *version); … … 54 54 } 55 55 status = TRUE; 56 status = status && ( int) ScanConfig (layout, "NCCD", "%d", 1, &Nccd);57 status = status && ( int) ScanConfig (layout, "FILTER", "%s", 1, filter);58 status = status && ( int) ScanConfig (layout, "CAMERA", "%s", 1, camera);59 status = status && ( int) ScanConfig (layout, "TVSTOP", "%s", 1, stop);60 status = status && ( int) ScanConfig (layout, "TVSTART", "%s", 1, start);56 status = status && (NULL == ScanConfig (layout, "NCCD", "%d", 1, &Nccd)); 57 status = status && (NULL == ScanConfig (layout, "FILTER", "%s", 1, filter)); 58 status = status && (NULL == ScanConfig (layout, "CAMERA", "%s", 1, camera)); 59 status = status && (NULL == ScanConfig (layout, "TVSTOP", "%s", 1, stop)); 60 status = status && (NULL == ScanConfig (layout, "TVSTART", "%s", 1, start)); 61 61 if (!status) { 62 62 fprintf (stderr, "error in layout file\n"); -
trunk/Ohana/src/mosastro/include/mosastro.h
r3520 r4772 204 204 void wfits (char *filename, SMPData *stars, int Nstars, Header *header); 205 205 int ConvertMatch (MatchData *data, int size, int nitems); 206 void SaveResiduals (FILE *f, Header *header); -
trunk/Ohana/src/mosastro/src/match.c
r3466 r4772 6 6 int i, j, k, K, Ntotal; 7 7 int Nmatch, NMATCH; 8 double dp, dq, radius, Radius , exptime;8 double dp, dq, radius, Radius; 9 9 double *p, *q, *P, *Q; 10 10 int *U, *u; -
trunk/Ohana/src/opihi/pantasks/CheckSystem.c
r4767 r4772 6 6 7 7 int CheckSystem () { 8 9 float dtime;10 struct timeval now;11 8 12 9 gettimeofday (&start, (void *) NULL); -
trunk/Ohana/src/opihi/pclient/ChildOps.c
r4763 r4772 29 29 30 30 int Nread; 31 pid_t ppid;32 31 double dtime; 33 32 struct timeval now; -
trunk/Ohana/src/opihi/pcontrol/CheckHost.c
r4763 r4772 3 3 int CheckHost (Host *host) { 4 4 5 int N,status;5 int status; 6 6 IOBuffer buffer; 7 7 Job *job;
Note:
See TracChangeset
for help on using the changeset viewer.
