Changeset 34749 for trunk/Ohana/src/getstar
- Timestamp:
- Nov 30, 2012, 10:06:05 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/getstar/src/ConfigInit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/getstar/src/ConfigInit.c
r25757 r34749 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256];8 7 9 8 /*** load configuration info ***/ … … 21 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 22 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);24 22 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { 25 23 SKY_DEPTH = 2; … … 34 32 /* XXX this does not yet write out the master photcode table */ 35 33 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 36 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {37 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);34 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 35 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 38 36 exit (1); 39 37 }
Note:
See TracChangeset
for help on using the changeset viewer.
