- Timestamp:
- Nov 23, 2012, 8:50:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/relphot/src/ConfigInit.c
r33963 r34689 6 6 char *config, *file; 7 7 char CatdirPhotcodeFile[256]; 8 char MasterPhotcodeFile[256];9 8 10 9 /*** load configuration info ***/ … … 45 44 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 46 45 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 47 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);48 46 49 sprintf (ImageCat, "%s/Images.dat", CATDIR);47 sprintf (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR); 50 48 51 49 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { … … 69 67 /* XXX this does not yet write out the master photcode table */ 70 68 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 71 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {72 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);69 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 70 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 73 71 exit (1); 74 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
